diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:56:29 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:56:29 +0100 |
commit | 3a7639e545c0543bcec19c4321dd3ba397fbe6fa (patch) | |
tree | 44decbbcb2ea9fd9aff7d0b86a4698a2b74a4fea /print-cfm.c | |
parent | 58010245a5c050e543862c068d1f182fc70623c7 (diff) | |
download | tcpdump-3a7639e545c0543bcec19c4321dd3ba397fbe6fa.tar.gz |
Use more the EXTRACT_U_1() macro (49/n)
Assignment, *(p)
Diffstat (limited to 'print-cfm.c')
-rw-r--r-- | print-cfm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-cfm.c b/print-cfm.c index 2a2485e9..674a3117 100644 --- a/print-cfm.c +++ b/print-cfm.c @@ -370,11 +370,11 @@ cfm_print(netdissect_options *ndo, /* * Resolve the MD fields. */ - md_nameformat = *namesp; + md_nameformat = EXTRACT_U_1(namesp); namesp++; names_data_remaining--; /* We know this is != 0 */ if (md_nameformat != CFM_CCM_MD_FORMAT_NONE) { - md_namelength = *namesp; + md_namelength = EXTRACT_U_1(namesp); namesp++; names_data_remaining--; /* We know this is !=0 */ ND_PRINT((ndo, "\n\t MD Name Format %s (%u), MD Name length %u", @@ -428,10 +428,10 @@ cfm_print(netdissect_options *ndo, /* * Resolve the MA fields. */ - ma_nameformat = *namesp; + ma_nameformat = EXTRACT_U_1(namesp); namesp++; names_data_remaining--; /* We know this is != 0 */ - ma_namelength = *namesp; + ma_namelength = EXTRACT_U_1(namesp); namesp++; names_data_remaining--; /* We know this is != 0 */ ND_PRINT((ndo, "\n\t MA Name-Format %s (%u), MA name length %u", |