Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/route give a little more space
details: https://anonhg.NetBSD.org/src/rev/e4df127d283e
branches: trunk
changeset: 333546:e4df127d283e
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 08 00:47:32 2014 +0000
description:
give a little more space
diffstat:
sbin/route/rtutil.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 9dcaf3079f45 -r e4df127d283e sbin/route/rtutil.c
--- a/sbin/route/rtutil.c Sat Nov 08 00:32:33 2014 +0000
+++ b/sbin/route/rtutil.c Sat Nov 08 00:47:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtutil.c,v 1.1 2014/11/06 21:29:32 christos Exp $ */
+/* $NetBSD: rtutil.c,v 1.2 2014/11/08 00:47:32 christos Exp $ */
/* $OpenBSD: show.c,v 1.1 2006/05/27 19:16:37 claudio Exp $ */
/*
@@ -186,13 +186,14 @@
/*
* column widths; each followed by one space
* width of destination/gateway column
- * strlen("fe80::aaaa:bbbb:cccc:dddd@gif0") == 30, strlen("/128") == 4
+ * strlen("fe80::aaaa:bbbb:cccc:dddd@gif0") == 30, strlen("/128") == 4 = 34
+ * strlen("aaaa:bbbb:cccc:dddd:eeee:ffff:gggg:hhhh") == 39
*/
#ifndef INET6
#define WID_DST(af) 18 /* width of destination column */
#define WID_GW(af) 18 /* width of gateway column */
#else
-#define WID_DST(af) ((af) == AF_INET6 ? ((flags & RT_NFLAG) ? 34 : 18) : 18)
+#define WID_DST(af) ((af) == AF_INET6 ? ((flags & RT_NFLAG) ? 39 : 18) : 18)
#define WID_GW(af) ((af) == AF_INET6 ? ((flags & RT_NFLAG) ? 30 : 18) : 18)
#endif
Home |
Main Index |
Thread Index |
Old Index