>From Solaris Forte C compiler under Solaris 7/SPARC:
cc -mr -Qn -xO2 -xtarget=generic -DHAVE_CONFIG_H -I.
-I/opt/TWWfsw/libpcap07/include -I./missing -c ./print-isoclns.c
"./print-isoclns.c", line 579: warning: initializer does not fit or is
out of range: 0x80000000
"./print-isoclns.c", line 579: warning: initializer does not fit or is
out of range: 0xc0000000
"./print-isoclns.c", line 579: warning: initializer does not fit or is
out of range: 0xe0000000
...
Shouldn't bitmasks be unsigned int:
static int
isis_print_tlv_ip_reach (const u_char *cp, int length)
{
int bitmasks[33] = {
0x00000000,
0x80000000, 0xc0000000, 0xe0000000, 0xf0000000,
0xf8000000, 0xfc000000, 0xfe000000, 0xff000000,
0xff800000, 0xffc00000, 0xffe00000, 0xfff00000,
0xfff80000, 0xfffc0000, 0xfffe0000, 0xffff0000,
0xffff8000, 0xffffc000, 0xffffe000, 0xfffff000,
0xfffff800, 0xfffffc00, 0xfffffe00, 0xffffff00,
0xffffff80, 0xffffffc0, 0xffffffe0, 0xfffffff0,
0xfffffff8, 0xfffffffc, 0xfffffffe, 0xffffffff
};
--
albert chin ([EMAIL PROTECTED])
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe