diff options
author | guy <guy> | 2002-02-25 09:36:07 +0000 |
---|---|---|
committer | guy <guy> | 2002-02-25 09:36:07 +0000 |
commit | 1493567efbed4ffda235ad8390469931c4cc8c1f (patch) | |
tree | 44263b17d50f5d48e10cefb48b42206ce9f06087 /print-isoclns.c | |
parent | ccb7f4f3c13d72271e00d03d2844b148995c45d2 (diff) | |
download | tcpdump-1493567efbed4ffda235ad8390469931c4cc8c1f.tar.gz |
Make the bitmasks unsigned "int"s, so that Sun's C compiler doesn't
complain.
Diffstat (limited to 'print-isoclns.c')
-rw-r--r-- | print-isoclns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/print-isoclns.c b/print-isoclns.c index 77e02c11..fbb1c033 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.36 2002-01-10 09:33:23 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.37 2002-02-25 09:36:07 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -574,7 +574,7 @@ isis_print_lspid(const u_char *cp) static int isis_print_tlv_ip_reach (const u_char *cp, int length) { - int bitmasks[33] = { + u_int bitmasks[33] = { 0x00000000, 0x80000000, 0xc0000000, 0xe0000000, 0xf0000000, 0xf8000000, 0xfc000000, 0xfe000000, 0xff000000, @@ -585,7 +585,8 @@ isis_print_tlv_ip_reach (const u_char *cp, int length) 0xffffff80, 0xffffffc0, 0xffffffe0, 0xfffffff0, 0xfffffff8, 0xfffffffc, 0xfffffffe, 0xffffffff }; - int mask, prefix_len; + u_int mask; + int prefix_len; const struct isis_tlv_ip_reach *tlv_ip_reach; tlv_ip_reach = (const struct isis_tlv_ip_reach *)cp; |