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)
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 44c8585..8ffcfdd 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -1166,6 +1166,7 @@
/* Check remaining length check.*/
if (endp - BGP_INPUT_PNT (peer) < BGP_ATTR_MIN_LEN)
{
+ /* XXX warning: long int format, int arg (arg 5) */
zlog (peer->log, LOG_WARNING,
"%s error BGP attribute length %ld is smaller than min len",
peer->host, endp - STREAM_PNT (BGP_INPUT (peer)));