*: 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_snmp.c b/ripd/rip_snmp.c
index 090ebfa..2df815b 100644
--- a/ripd/rip_snmp.c
+++ b/ripd/rip_snmp.c
@@ -33,7 +33,7 @@
#include "smux.h"
#include "ripd/ripd.h"
-
+
/* RIPv2-MIB. */
#define RIPV2MIB 1,3,6,1,2,1,23
@@ -76,7 +76,7 @@
#define TIMETICKS ASN_TIMETICKS
#define IPADDRESS ASN_IPADDRESS
#define STRING ASN_OCTET_STR
-
+
/* Define SNMP local variables. */
SNMP_LOCAL_VARIABLES
@@ -149,7 +149,7 @@
};
extern struct thread_master *master;
-
+
static u_char *
rip2Globals (struct variable *v, oid name[], size_t *length,
int exact, size_t *var_len, WriteMethod **write_method)