Trifling in things that matter not

This commit is contained in:
XANTRONIX Development 2020-06-10 22:46:30 -04:00 committed by XANTRONIX Industrial
parent 548c7149fb
commit aa8cd2f350
2 changed files with 7 additions and 7 deletions

View file

@ -31,13 +31,13 @@ typedef struct _patty_ax25_frame {
unsigned int hops;
uint16_t control;
uint8_t proto;
enum patty_ax25_version version;
enum patty_ax25_frame_type type;
enum patty_ax25_frame_cr cr;
uint16_t control;
uint8_t proto;
void *info;
size_t len;
} patty_ax25_frame;

View file

@ -140,10 +140,6 @@ static ssize_t decode_info(patty_ax25_frame *frame,
int info = 0;
frame->control = control;
decoded++;
if (PATTY_AX25_CONTROL_INFO(control)) {
frame->type = PATTY_AX25_FRAME_INFO;
@ -164,6 +160,10 @@ static ssize_t decode_info(patty_ax25_frame *frame,
goto error;
}
frame->control = control;
decoded++;
/*
* If we've received either an Info or Unnumbered Info frame, then decode
* the Protocol Identifier field, and calculate the location and size of