*: 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/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index cce56fc..efdf826 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -323,7 +323,7 @@
return max;
}
-
+
static int
ospf_check_md5_digest (struct ospf_interface *oi, struct ospf_header *ospfh)
{
@@ -438,7 +438,7 @@
return OSPF_AUTH_MD5_SIZE;
}
-
+
static int
ospf_ls_req_timer (struct thread *thread)
{
@@ -2136,7 +2136,7 @@
return;
}
-
+
static struct stream *
ospf_recv_packet (int fd, struct interface **ifp, struct stream *ibuf)
{