First small part of lib cleanup. Mainly "constification" of arguments and
adding FIXME's.
diff --git a/lib/log.c b/lib/log.c
index 5f6b32f..2090b91 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -113,7 +113,8 @@
if (zl->flags & ZLOG_FILE)
{
time_print (zl->fp);
- if (zl->record_priority) fprintf (zl->fp, "%s: ", zlog_priority[priority]);
+ if (zl->record_priority)
+ fprintf (zl->fp, "%s: ", zlog_priority[priority]);
fprintf (zl->fp, "%s: ", zlog_proto_names[zl->protocol]);
vfprintf (zl->fp, format, args[ZLOG_FILE_INDEX]);
fprintf (zl->fp, "\n");
@@ -124,7 +125,8 @@
if (zl->flags & ZLOG_STDOUT)
{
time_print (stdout);
- if (zl->record_priority) fprintf (stdout, "%s: ", zlog_priority[priority]);
+ if (zl->record_priority)
+ fprintf (stdout, "%s: ", zlog_priority[priority]);
fprintf (stdout, "%s: ", zlog_proto_names[zl->protocol]);
vfprintf (stdout, format, args[ZLOG_STDOUT_INDEX]);
fprintf (stdout, "\n");
@@ -135,7 +137,8 @@
if (zl->flags & ZLOG_STDERR)
{
time_print (stderr);
- if (zl->record_priority) fprintf (stderr, "%s: ", zlog_priority[priority]);
+ if (zl->record_priority)
+ fprintf (stderr, "%s: ", zlog_priority[priority]);
fprintf (stderr, "%s: ", zlog_proto_names[zl->protocol]);
vfprintf (stderr, format, args[ZLOG_STDERR_INDEX]);
fprintf (stderr, "\n");
@@ -484,7 +487,7 @@
}
/* Very old hacky version of message lookup function. Still partly
- used in bgpd and ospfd. */
+ used in bgpd and ospfd. FIXME Seems that it's not used any more. */
char *
mes_lookup (struct message *meslist, int max, int index)
{