summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-11 16:18:05 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-11 19:00:53 -0700
commitd6dc4ba487f79ba79e5fb02f4c3e978fa1edeee5 (patch)
tree35d234bd4a14e2391300f46ba8c22b1f9b8d42e7 /bgpd/bgp_attr.c
parent762cb0d0e116860bc72d7f0be3c048871da9512f (diff)
downloadquagga-d6dc4ba487f79ba79e5fb02f4c3e978fa1edeee5.tar.bz2
quagga-d6dc4ba487f79ba79e5fb02f4c3e978fa1edeee5.tar.xz
Fix compiler warnings from incorrect format strings
Mostly from incorrect usage of z option. Need to use: printf(" size = %zd", x->size);
Diffstat (limited to 'bgpd/bgp_attr.c')
-rw-r--r--bgpd/bgp_attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 26f62f5a..b27267c0 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -1548,9 +1548,9 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
&& ((endp - startp) < (BGP_ATTR_MIN_LEN + 1)))
{
zlog (peer->log, LOG_WARNING,
- "%s Extended length set, but just %u bytes of attr header",
+ "%s Extended length set, but just %tu bytes of attr header",
peer->host,
- (unsigned long) (endp - STREAM_PNT (BGP_INPUT (peer))));
+ endp - STREAM_PNT (BGP_INPUT (peer)));
bgp_notify_send (peer,
BGP_NOTIFY_UPDATE_ERR,