*: 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/lib/if.c b/lib/if.c
index 6348403..18e2fb3 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -35,7 +35,7 @@
#include "buffer.h"
#include "str.h"
#include "log.h"
-
+
/* Master list of interfaces. */
struct list *iflist;
@@ -45,7 +45,7 @@
int (*if_new_hook) (struct interface *);
int (*if_delete_hook) (struct interface *);
} if_master;
-
+
/* Compare interface names, returning an integer greater than, equal to, or
* less than 0, (following the strcmp convention), according to the
* relationship between ifp1 and ifp2. Interface names consist of an
@@ -513,7 +513,7 @@
return CMD_SUCCESS;
}
-
+
#ifdef SUNOS_5
/* Need to handle upgrade from SUNWzebra to Quagga. SUNWzebra created
* a seperate struct interface for each logical interface, so config
@@ -555,7 +555,7 @@
return if_get_by_name_len (name, nlen);
}
#endif /* SUNOS_5 */
-
+
DEFUN (interface,
interface_cmd,
"interface IFNAME",
@@ -806,7 +806,7 @@
return ifp->name;
}
#endif
-
+
#if 0 /* this route_table of struct connected's is unused
* however, it would be good to use a route_table rather than
* a list..