[bgpd] Trivial fix of printf format/arg mismatch

2006-09-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

	* bgpd.c: (peer_uptime) Fix printf format/arg mismatch in
	  zlog_warn message (%ld/size_t -> %lu/u_long).
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 89f8262..1ead13c 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -4250,8 +4250,7 @@
   /* 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);
+      zlog_warn ("peer_uptime (): buffer shortage %lu", (u_long)len);
       /* XXX: should return status instead of buf... */
       snprintf (buf, len, "<error> "); 
       return buf;