From aa8cd2f350f6b5e488491071c717d9cd176cc16c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 10 Jun 2020 22:46:30 -0400 Subject: [PATCH] Trifling in things that matter not --- include/patty/ax25/frame.h | 6 +++--- src/frame.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/patty/ax25/frame.h b/include/patty/ax25/frame.h index 84b10a1..02ba5e0 100644 --- a/include/patty/ax25/frame.h +++ b/include/patty/ax25/frame.h @@ -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; diff --git a/src/frame.c b/src/frame.c index f731e75..f1b4d4a 100644 --- a/src/frame.c +++ b/src/frame.c @@ -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