*: 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_interface.c b/ospfd/ospf_interface.c
index a37dde1..0f02cc8 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -49,7 +49,7 @@
#include "ospfd/ospf_snmp.h"
#endif /* HAVE_SNMP */
-
+
int
ospf_if_get_output_cost (struct ospf_interface *oi)
{
@@ -334,7 +334,7 @@
XFREE (MTYPE_OSPF_IF, oi);
}
-
+
/*
* check if interface with given address is configured and
* return it if yes. special treatment for PtP networks.
@@ -489,7 +489,7 @@
return match;
}
-
+
void
ospf_if_stream_set (struct ospf_interface *oi)
{
@@ -518,7 +518,7 @@
}
}
-
+
static struct ospf_if_params *
ospf_new_if_params (void)
{
@@ -825,7 +825,7 @@
return 1;
}
-
+
/* Virtual Link related functions. */
struct ospf_vl_data *
@@ -1194,7 +1194,7 @@
return c;
}
-
+
struct crypt_key *
ospf_crypt_key_new ()
{