[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.
diff --git a/lib/if.c b/lib/if.c
index df76126..c43d956 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -405,7 +405,7 @@
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 @@
strlcat (logbuf, ">", BUFSIZ);
return logbuf;
+#undef IFF_OUT_LOG
}
/* For debugging */