*: 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_damp.c b/bgpd/bgp_damp.c
index 2820f17..0ffafb7 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -42,7 +42,7 @@
used list. */
#define BGP_DAMP_LIST_ADD(N,A) BGP_INFO_ADD(N,A,no_reuse_list)
#define BGP_DAMP_LIST_DEL(N,A) BGP_INFO_DEL(N,A,no_reuse_list)
-
+
/* Calculate reuse list index by penalty value. */
static int
bgp_reuse_index (int penalty)
@@ -86,7 +86,7 @@
else
damp->reuse_list[bdi->index] = bdi->next;
}
-
+
/* Return decayed penalty value. */
int
bgp_damp_decay (time_t tdiff, int penalty)