*: 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/bgpd/bgp_dump.c b/bgpd/bgp_dump.c
index edb725a..a3c9526 100644
--- a/bgpd/bgp_dump.c
+++ b/bgpd/bgp_dump.c
@@ -33,7 +33,7 @@
#include "bgpd/bgp_route.h"
#include "bgpd/bgp_attr.h"
#include "bgpd/bgp_dump.h"
-
+
enum bgp_dump_type
{
BGP_DUMP_ALL,
@@ -89,7 +89,7 @@
/* Dump whole BGP table is very heavy process. */
struct thread *t_bgp_dump_routes;
-
+
/* Some define for BGP packet dump. */
static FILE *
bgp_dump_open_file (struct bgp_dump *bgp_dump)
@@ -535,7 +535,7 @@
if (type == BGP_MSG_UPDATE)
bgp_dump_packet_func (&bgp_dump_updates, peer, packet);
}
-
+
static unsigned int
bgp_dump_parse_time (const char *str)
{
@@ -845,7 +845,7 @@
}
return 0;
}
-
+
/* Initialize BGP packet dump functionality. */
void
bgp_dump_init (void)