summaryrefslogtreecommitdiff
path: root/print-cdp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-22 09:28:18 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-22 10:36:51 +0100
commitc8e0a4a1681fd3a9673cddcd7b3f93a869ac6813 (patch)
tree2430d9cf02a3acda21d7d55d83925b577c4c92b5 /print-cdp.c
parent9c9a3c52971511af27157461795f17971f5a526a (diff)
downloadtcpdump-c8e0a4a1681fd3a9673cddcd7b3f93a869ac6813.tar.gz
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (20/n)
e op *p Partial list.
Diffstat (limited to 'print-cdp.c')
-rw-r--r--print-cdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-cdp.c b/print-cdp.c
index 188a3321..37db394d 100644
--- a/print-cdp.c
+++ b/print-cdp.c
@@ -396,7 +396,7 @@ static unsigned long cdp_get_number(const u_char * p, int l)
unsigned long res=0;
while( l>0 )
{
- res = (res<<8) + *p;
+ res = (res<<8) + EXTRACT_8BITS(p);
p++; l--;
}
return res;