summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:53:35 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:58:02 +0200
commit6b0655a25194c7c0331154edaa6124cf783e5e5e (patch)
treec0c7d479f2684531249668210da27a60322ba395 /lib/log.c
parentfdb913aedb5a9807ad60715e8badb4f25d57acea (diff)
downloadquagga-6b0655a25194c7c0331154edaa6124cf783e5e5e.tar.bz2
quagga-6b0655a25194c7c0331154edaa6124cf783e5e5e.tar.xz
*: nuke ^L (page feed)
Quagga sources have inherited a slew of Page Feed (^L, \xC) characters from ancient history. Among other things, these break patchwork's XML-RPC API because \xC is not a valid character in XML documents. Nuke them from high orbit. Patches can be adapted simply by: sed -e 's%^L%%' -i filename.patch (you can type page feeds in some environments with Ctrl-V Ctrl-L) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/log.c b/lib/log.c
index 55a3b052..1058844b 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -69,7 +69,7 @@ const char *zlog_priority[] =
};
-
+
/* For time string format. */
size_t
@@ -145,7 +145,7 @@ time_print(FILE *fp, struct timestamp_control *ctl)
fprintf(fp, "%s ", ctl->buf);
}
-
+
/* va_list version of zlog. */
static void
vzlog (struct zlog *zl, int priority, const char *format, va_list args)
@@ -619,7 +619,7 @@ _zlog_assert_failed (const char *assertion, const char *file,
abort();
}
-
+
/* Open log stream */
struct zlog *
openzlog (const char *progname, zlog_proto_t protocol,
@@ -756,7 +756,7 @@ zlog_rotate (struct zlog *zl)
return 1;
}
-
+
/* Message lookup function. */
const char *
lookup (const struct message *mes, int key)