diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-26 19:01:16 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-26 19:01:16 +0000 |
commit | 9634d9031c140b24c7ca0d8872632207f6ce7275 (patch) | |
tree | 34ba241de1f12fcbd4e3301f081c50ff2db654da /slirp/sbuf.c | |
parent | Make Slirp statistics gathering and output conditional to LOG_ENABLED (diff) | |
download | qemu-kvm-9634d9031c140b24c7ca0d8872632207f6ce7275.tar.gz qemu-kvm-9634d9031c140b24c7ca0d8872632207f6ce7275.tar.bz2 qemu-kvm-9634d9031c140b24c7ca0d8872632207f6ce7275.zip |
Use const and static as needed, disable unused code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3452 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/sbuf.c')
-rw-r--r-- | slirp/sbuf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/slirp/sbuf.c b/slirp/sbuf.c index 209064b1a..02c5fce0a 100644 --- a/slirp/sbuf.c +++ b/slirp/sbuf.c @@ -7,6 +7,8 @@ #include <slirp.h> +static void sbappendsb(struct sbuf *sb, struct mbuf *m); + /* Done as a macro in socket.h */ /* int * sbspace(struct sockbuff *sb) @@ -133,10 +135,8 @@ sbappend(so, m) * Copy the data from m into sb * The caller is responsible to make sure there's enough room */ -void -sbappendsb(sb, m) - struct sbuf *sb; - struct mbuf *m; +static void +sbappendsb(struct sbuf *sb, struct mbuf *m) { int len, n, nn; |