summaryrefslogtreecommitdiffstats
path: root/lib/stream.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:53:35 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:58:02 +0200
commit6b0655a25194c7c0331154edaa6124cf783e5e5e (patch)
treec0c7d479f2684531249668210da27a60322ba395 /lib/stream.c
parentfdb913aedb5a9807ad60715e8badb4f25d57acea (diff)
downloadquagga-6b0655a25194c7c0331154edaa6124cf783e5e5e.tar.bz2
quagga-6b0655a25194c7c0331154edaa6124cf783e5e5e.tar.xz
*: 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>
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/stream.c b/lib/stream.c
index 9a6fcbcf..0fc3c3b1 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -196,7 +196,7 @@ stream_resize (struct stream *s, size_t newsize)
return s->size;
}
-
+
size_t
stream_get_getp (struct stream *s)
{
@@ -285,7 +285,7 @@ stream_forward_endp (struct stream *s, size_t size)
s->endp += size;
}
-
+
/* Copy from stream to destination. */
void
stream_get (void *dst, struct stream *s, size_t size)
@@ -492,7 +492,7 @@ stream_get_ipv4 (struct stream *s)
return l;
}
-
+
/* Copy to source to stream.
*
* XXX: This uses CHECK_SIZE and hence has funny semantics -> Size will wrap
@@ -731,7 +731,7 @@ stream_put_prefix (struct stream *s, struct prefix *p)
return psize;
}
-
+
/* Read size from fd. */
int
stream_read (struct stream *s, int fd, size_t size)
@@ -937,7 +937,7 @@ stream_flush (struct stream *s, int fd)
return nbytes;
}
-
+
/* Stream first in first out queue. */
struct stream_fifo *