*: 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/stream.c b/lib/stream.c
index 9a6fcbc..0fc3c3b 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -196,7 +196,7 @@
return s->size;
}
-
+
size_t
stream_get_getp (struct stream *s)
{
@@ -285,7 +285,7 @@
s->endp += size;
}
-
+
/* Copy from stream to destination. */
void
stream_get (void *dst, struct stream *s, size_t size)
@@ -492,7 +492,7 @@
return l;
}
-
+
/* Copy to source to stream.
*
* XXX: This uses CHECK_SIZE and hence has funny semantics -> Size will wrap
@@ -731,7 +731,7 @@
return psize;
}
-
+
/* Read size from fd. */
int
stream_read (struct stream *s, int fd, size_t size)
@@ -937,7 +937,7 @@
return nbytes;
}
-
+
/* Stream first in first out queue. */
struct stream_fifo *