*: 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/ripd/rip_zebra.c b/ripd/rip_zebra.c
index 199e85e..1f6ef61 100644
--- a/ripd/rip_zebra.c
+++ b/ripd/rip_zebra.c
@@ -33,7 +33,7 @@
/* All information about zebra. */
struct zclient *zclient = NULL;
-
+
/* RIPd to zebra command interface. */
void
rip_zebra_ipv4_add (struct prefix_ipv4 *p, struct in_addr *nexthop,
@@ -196,7 +196,7 @@
return 0;
}
-
+
/* Redistribution types */
static struct {
int type;
@@ -551,7 +551,7 @@
return CMD_WARNING;
}
-
+
/* Default information originate. */
DEFUN (rip_default_information_originate,
@@ -597,7 +597,7 @@
return CMD_SUCCESS;
}
-
+
/* RIP configuration write function. */
static int
config_write_zebra (struct vty *vty)