*: 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>
diff --git a/lib/zclient.c b/lib/zclient.c
index d316596..20188f6 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -32,7 +32,7 @@
#include "zclient.h"
#include "memory.h"
#include "table.h"
-
+
/* Zebra client events. */
enum event {ZCLIENT_SCHEDULE, ZCLIENT_READ, ZCLIENT_CONNECT};
@@ -45,7 +45,7 @@
/* This file local debug flag. */
int zclient_debug = 0;
-
+
/* Allocate zclient structure. */
struct zclient *
zclient_new ()
@@ -413,7 +413,7 @@
return zclient_start (zclient);
}
-
+
/*
* "xdr_encode"-like interface that allows daemon (client) to send
* a message to zebra server for a route that needs to be
@@ -816,7 +816,7 @@
return ifc;
}
-
+
/* Zebra client message read function. */
static int
zclient_read (struct thread *thread)