diff --git a/include/patty/ax25.h b/include/patty/ax25.h index c916e48..41ffe02 100644 --- a/include/patty/ax25.h +++ b/include/patty/ax25.h @@ -76,7 +76,7 @@ enum patty_ax25_param_hdlc { }; typedef struct _patty_ax25_params { - uint32_t found; + uint32_t flags; uint32_t classes, hdlc; diff --git a/src/frame.c b/src/frame.c index 09c3f79..c197853 100644 --- a/src/frame.c +++ b/src/frame.c @@ -303,7 +303,7 @@ static void save_xid_param(patty_ax25_params *params, return; } - params->found |= (1 << type); + params->flags |= (1 << type); } ssize_t decode_xid_group(patty_ax25_params *params, diff --git a/src/print.c b/src/print.c index 76ed155..17ab587 100644 --- a/src/print.c +++ b/src/print.c @@ -205,7 +205,7 @@ int patty_print_params(FILE *fh, } for (i=0; fields[i].name; i++) { - if (params->found & (1 << fields[i].flag)) { + if (params->flags & (1 << fields[i].flag)) { if (fprintf(fh, " %s: %zu\n", fields[i].name, fields[i].value) < 0) { goto error_fprintf; }