diff options
author | Paul Jakma <paul.jakma@sun.com> | 2008-06-07 22:42:07 +0200 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2008-06-07 22:42:07 +0200 |
commit | 3d52bb8085c32b54fa21d88588310716245291d4 (patch) | |
tree | 8d47a7c92cafb9df895ba32b705e19386e0944e9 /lib/stream.h | |
parent | [bgpd] minor changes to bgp_mp_reach_parse (diff) | |
download | frr-3d52bb8085c32b54fa21d88588310716245291d4.tar.xz frr-3d52bb8085c32b54fa21d88588310716245291d4.zip |
[lib] trivial: add const qualifier to stream_put/write
2008-06-07 Paul Jakma <paul@jakma.org>
* stream.{c,h}: (stream_{put,write}) add const qualifier to source
argument. Change u_char to void *.
Diffstat (limited to 'lib/stream.h')
-rw-r--r-- | lib/stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stream.h b/lib/stream.h index 715a083dc..3e4ba7b41 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -150,7 +150,7 @@ extern void stream_forward_getp (struct stream *, size_t); extern void stream_forward_endp (struct stream *, size_t); /* steam_put: NULL source zeroes out size_t bytes of stream */ -extern void stream_put (struct stream *, void *, size_t); +extern void stream_put (struct stream *, const void *, size_t); extern int stream_putc (struct stream *, u_char); extern int stream_putc_at (struct stream *, size_t, u_char); extern int stream_putw (struct stream *, u_int16_t); @@ -200,7 +200,7 @@ extern ssize_t stream_recvmsg (struct stream *s, int fd, struct msghdr *, extern ssize_t stream_recvfrom (struct stream *s, int fd, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen); -extern size_t stream_write (struct stream *, u_char *, size_t); +extern size_t stream_write (struct stream *, const void *, size_t); /* reset the stream. See Note above */ extern void stream_reset (struct stream *); |