summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-06-15 12:48:17 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-06-15 12:48:17 +0000
commit630c97ce0f87a719f678a24bd84945d4f145fdc5 (patch)
tree1b87b2247617af51556f24a45b6735674d7f948d /lib
parentc024fd0c76bc305cd6b6bab0989226bd9ec5e763 (diff)
[zebra] remove internal if_flag_dump, use libzebras version.
2006-06-15 Paul Jakma <paul.jakma@sun.com> * lib/if.c: (if_flag_dump) remove the whitespace indentation, callers should provide. * zebra/interface.c: (if_flag_dump_vty) redundant code, remove. (if_dump_vty) use libzebra if_flag_dump.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog2
-rw-r--r--lib/if.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index a9c3b8bf..d031d8f5 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -5,6 +5,8 @@
pointer.
* linklist.c: (list_delete) call list_delete_all_node, don't
duplicate it.
+ * if.c: (if_flag_dump) remove the whitespace indentation, callers
+ should provide.
2006-05-28 Paul Jakma <paul.jakma@sun.com>
diff --git a/lib/if.c b/lib/if.c
index df761265..c43d9564 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -405,7 +405,7 @@ if_flag_dump (unsigned long flag)
strlcat (logbuf, STR, BUFSIZ); \
}
- strlcpy (logbuf, " <", BUFSIZ);
+ strlcpy (logbuf, "<", BUFSIZ);
IFF_OUT_LOG (IFF_UP, "UP");
IFF_OUT_LOG (IFF_BROADCAST, "BROADCAST");
IFF_OUT_LOG (IFF_DEBUG, "DEBUG");
@@ -431,6 +431,7 @@ if_flag_dump (unsigned long flag)
strlcat (logbuf, ">", BUFSIZ);
return logbuf;
+#undef IFF_OUT_LOG
}
/* For debugging */