diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-03-02 14:51:43 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-03-02 22:53:10 +0000 |
commit | b98bb5188c9082a06a370483c9474a929e957659 (patch) | |
tree | 71e5d73788478ae2a0ce54cf51a455331640b8b9 /wiretap | |
parent | b019c5931c945c20b9bc3f0c1f904dd3bd590873 (diff) |
Make sure nspr_getv20recordsize() returns an unsigned value.
The record size fields are guint8, but NSPR_V20RECORDSIZE_2BYTES was
0x80, which has type int, promoting the result to int. Make it 0x80U,
which means everything is unsigned.
This squelches a compiler warning.
Change-Id: I1c63e485352a90c7f675ab0dacaaeba794235b35
Reviewed-on: https://code.wireshark.org/review/20344
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/netscaler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/netscaler.c b/wiretap/netscaler.c index 13ec208849..f538bdc541 100644 --- a/wiretap/netscaler.c +++ b/wiretap/netscaler.c @@ -128,7 +128,7 @@ typedef struct nspr_hd_v20 ** The short header size can be 0-127 bytes long. If MS Bit of ph_RecordSize ** is set then record size has 2 bytes */ -#define NSPR_V20RECORDSIZE_2BYTES 0x80 +#define NSPR_V20RECORDSIZE_2BYTES 0x80U /* Performance Data Header with device number */ typedef struct nspr_headerdev_v10 |