diff options
Diffstat (limited to 'net/openbgpd/files/patch-bgpctl_bgpctl.c')
-rw-r--r-- | net/openbgpd/files/patch-bgpctl_bgpctl.c | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/net/openbgpd/files/patch-bgpctl_bgpctl.c b/net/openbgpd/files/patch-bgpctl_bgpctl.c index 308e4fc8bdf1..98a35f311807 100644 --- a/net/openbgpd/files/patch-bgpctl_bgpctl.c +++ b/net/openbgpd/files/patch-bgpctl_bgpctl.c @@ -1,26 +1,21 @@ ---- bgpctl/bgpctl.c.orig Tue Jan 24 15:28:03 2006 -+++ bgpctl/bgpctl.c Mon Mar 20 11:55:29 2006 -@@ -29,7 +29,11 @@ +--- bgpctl/bgpctl.c 28 Aug 2006 05:28:49 -0000 1.110 ++++ bgpctl/bgpctl.c 8 Feb 2007 10:32:19 -0000 +@@ -29,13 +29,13 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> -+#if defined(__OpenBSD__) - #include <util.h> -+#else /* defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) */ -+#include <libutil.h> -+#endif +-#include <util.h> #include "bgpd.h" #include "session.h" -@@ -1032,7 +1039,11 @@ - { - static char buf[16]; + #include "rde.h" + #include "log.h" + #include "parser.h" ++#include "util.h" -+#if defined(__OpenBSD__) - if (fmt_scaled(num, buf) == -1) -+#else /* defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) */ -+ if (humanize_number(buf, 16, num, "", HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL) == -1) -+#endif - snprintf(buf, sizeof(buf), "%lldB", num); - - return (buf); + enum neighbor_views { + NV_DEFAULT, +Index: fmt_scaled.c +=================================================================== +RCS file: fmt_scaled.c +diff -N fmt_scaled.c |