tcpdump mailing list archives
one more compiler warning
From: Neil Spring <nspring () cs washington edu>
Date: Sat, 4 Oct 2003 15:17:10 -0700
though this is easy to reproduce...I show just two warnings when building on linux, one having to do with passing a const char pointer to openssl (I assume openssl is in the wrong) and the other is simple:
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W -Wall -Wwrite-strings -W -Wno-unused -Wno-sign-compare -DHAVE_CONFIG_H -I. -I./../libpcap -I./missing -I/usr//include -c ./print-pppoe.c
./print-pppoe.c: In function `pppoe_print':./print-pppoe.c:199: warning: `0' flag ignored with precision specifier and `X' format
I can see what you're trying to do (use the precision to be sure about the number of characters printed, like it works for "%.5s"), but I can't find how to do it in the man page... "%02X", "%02.2X" and "%2.2X" seem to be equivalent.
thanks, -neil - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- one more compiler warning Neil Spring (Oct 04)