diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-24 01:42:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-24 01:42:17 +0000 |
commit | feef7fbf2755149c57fafd227003253cfb8ee5b0 (patch) | |
tree | 06978eae1c4d944dbc00a3e451043d289b53a61b /usr.sbin | |
parent | 602b6be4d916dd9861bd6bf6d618fde5519ddfb8 (diff) |
Please use portable C code
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/tcpdump/print-vqp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-vqp.c b/usr.sbin/tcpdump/print-vqp.c index 13cedec4d2c..ad39386543b 100644 --- a/usr.sbin/tcpdump/print-vqp.c +++ b/usr.sbin/tcpdump/print-vqp.c @@ -223,10 +223,12 @@ vqp_print(const u_char *bp, u_int len) dcount = p->dcount; while (vflag && dcount > 0) { + u_int type, length; + TCHECK2(bp[0], 6); - u_int type = EXTRACT_32BITS(bp); + type = EXTRACT_32BITS(bp); bp += 4; - u_int length = EXTRACT_16BITS(bp); + length = EXTRACT_16BITS(bp); bp += 2; TCHECK2(bp[0], length); vqp_print_type(type, length, bp); |