*: 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_spf.c b/ospfd/ospf_spf.c
index bd9564d..c40fc33 100644
--- a/ospfd/ospf_spf.c
+++ b/ospfd/ospf_spf.c
@@ -52,7 +52,7 @@
* dynamically allocated at begin of ospf_spf_calculate
*/
static struct list vertex_list = { .del = ospf_vertex_free };
-
+
/* Heap related functions, for the managment of the candidates, to
* be used with pqueue. */
static int
@@ -90,7 +90,7 @@
/* Set the status of the vertex, when its position changes. */
*(v->stat) = position;
}
-
+
static struct vertex_nexthop *
vertex_nexthop_new (void)
{
@@ -134,7 +134,7 @@
vertex_nexthop_free (vp->nexthop);
}
}
-
+
/* TODO: Parent list should be excised, in favour of maintaining only
* vertex_nexthop, with refcounts.
*/
@@ -159,7 +159,7 @@
{
XFREE (MTYPE_OSPF_VERTEX_PARENT, p);
}
-
+
static struct vertex *
ospf_vertex_new (struct ospf_lsa *lsa)
{
@@ -276,7 +276,7 @@
listnode_add (vp->parent->children, v);
}
}
-
+
static void
ospf_spf_init (struct ospf_area *area)
{
@@ -1254,7 +1254,7 @@
zlog_debug ("ospf_spf_calculate: Stop. %ld vertices",
mtype_stats_alloc(MTYPE_OSPF_VERTEX));
}
-
+
/* Timer for SPF calculation. */
static int
ospf_spf_calculate_timer (struct thread *thread)