Rename patty_ax25_params 'found' to 'flags'

This commit is contained in:
XANTRONIX Development 2020-07-18 15:03:52 -04:00 committed by XANTRONIX Industrial
parent 5e1d74c971
commit 6911a59455
3 changed files with 3 additions and 3 deletions

View file

@ -76,7 +76,7 @@ enum patty_ax25_param_hdlc {
};
typedef struct _patty_ax25_params {
uint32_t found;
uint32_t flags;
uint32_t classes,
hdlc;

View file

@ -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,

View file

@ -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;
}