diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-08-02 13:03:34 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-08-02 13:03:34 -0700 |
commit | d04b4e4b88904407b889cbf9207e1e85deff80fb (patch) | |
tree | c30bc6c4d047a2a227816ceb1eae55842fee2afd /print-nsh.c | |
parent | 79a0579b3ac95725acf0bf0f9c1059e2ce0e66d7 (diff) | |
download | tcpdump-d04b4e4b88904407b889cbf9207e1e85deff80fb.tar.gz |
Squelch a signed vs. unsigned comparison warning.
Multiplying a uint8_t by an int results in an int, not an unsigned int;
make NSH_HDR_WORD_SIZE an unsigned constant so the multiplication is
uint8_t times unsigned int.
Diffstat (limited to 'print-nsh.c')
-rw-r--r-- | print-nsh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-nsh.c b/print-nsh.c index 1a27b713..0130e6dd 100644 --- a/print-nsh.c +++ b/print-nsh.c @@ -39,7 +39,7 @@ static const struct tok nsh_flags [] = { #define NSH_BASE_HDR_LEN 4 #define NSH_SERVICE_PATH_HDR_LEN 4 -#define NSH_HDR_WORD_SIZE 4 +#define NSH_HDR_WORD_SIZE 4U /* * NSH, draft-ietf-sfc-nsh-01 Network Service Header |