diff options
author | guy <guy> | 2006-08-19 06:59:17 +0000 |
---|---|---|
committer | guy <guy> | 2006-08-19 06:59:17 +0000 |
commit | 9bdbb51f4122817ca8bdba9fb9917969809ff451 (patch) | |
tree | b101aa51cf25e95bcd7550204409ece2a65006b5 /print-slow.c | |
parent | c1cb148bb7287a19926ee04a2f4f2529502f6f08 (diff) | |
download | tcpdump-9bdbb51f4122817ca8bdba9fb9917969809ff451.tar.gz |
Fix some "unsigned int" vs. "size_t" issues (they're not necessarily the
same).
Diffstat (limited to 'print-slow.c')
-rw-r--r-- | print-slow.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print-slow.c b/print-slow.c index 05d22692..9da02ffa 100644 --- a/print-slow.c +++ b/print-slow.c @@ -20,7 +20,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-slow.c,v 1.6 2006-06-23 01:53:28 hannes Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-slow.c,v 1.7 2006-08-19 06:59:17 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -509,8 +509,8 @@ void slow_oam_print(register const u_char *tptr, register u_int tlen) { if (tlv.slow_oam_info->info_length != sizeof(struct slow_oam_info_t)) { - printf("\n\t ERROR: illegal length - should be %u", - sizeof(struct slow_oam_info_t)); + printf("\n\t ERROR: illegal length - should be %lu", + (unsigned long) sizeof(struct slow_oam_info_t)); return; } @@ -585,8 +585,8 @@ void slow_oam_print(register const u_char *tptr, register u_int tlen) { if (tlv.slow_oam_link_event->event_length != sizeof(struct slow_oam_link_event_t)) { - printf("\n\t ERROR: illegal length - should be %u", - sizeof(struct slow_oam_link_event_t)); + printf("\n\t ERROR: illegal length - should be %lu", + (unsigned long) sizeof(struct slow_oam_link_event_t)); return; } |