From c29fdba771810c70d78d87127d3a479e0f72b60e Mon Sep 17 00:00:00 2001 From: gdt Date: Thu, 9 Dec 2004 14:46:46 +0000 Subject: Add comments with warnings obtained on NetBSD/i386. Both are due to size_t being used for streams. Perhaps cast to unsigned long before printf? Surely that's big enough even if size_t could be larger in theory. (no changelog, since only comment changes) --- bgpd/bgpd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bgpd/bgpd.c') diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 26c44553..bd2f998f 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4122,6 +4122,7 @@ peer_uptime (time_t uptime2, char *buf, size_t len) /* Check buffer length. */ if (len < BGP_UPTIME_LEN) { + /* XXX: warning: long int format, size_t arg (arg 2) */ zlog_warn ("peer_uptime (): buffer shortage %ld", len); /* XXX: should return status instead of buf... */ snprintf (buf, len, " "); -- cgit v1.2.1