diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-30 09:51:20 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-30 09:51:20 +0000 |
commit | 329f1437d56256c2198b904f82bc112e2ebe4e4e (patch) | |
tree | 5a4ec99b6d47de6540d2be29ac64a8d79c48da87 /slirp/mbuf.c | |
parent | ab88bd5dc7b670530a85187119304d217d6eda8c (diff) | |
download | qemu-329f1437d56256c2198b904f82bc112e2ebe4e4e.tar.gz qemu-329f1437d56256c2198b904f82bc112e2ebe4e4e.tar.bz2 qemu-329f1437d56256c2198b904f82bc112e2ebe4e4e.zip |
Fix some warnings that would be generated by gcc -Wredundant-decls
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5115 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/mbuf.c')
-rw-r--r-- | slirp/mbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slirp/mbuf.c b/slirp/mbuf.c index 5d12554285..c8797e61f4 100644 --- a/slirp/mbuf.c +++ b/slirp/mbuf.c @@ -28,7 +28,7 @@ int mbuf_max = 0; * Find a nice value for msize * XXX if_maxlinkhdr already in mtu */ -#define MSIZE (IF_MTU + IF_MAXLINKHDR + sizeof(struct m_hdr ) + 6) +#define SLIRP_MSIZE (IF_MTU + IF_MAXLINKHDR + sizeof(struct m_hdr ) + 6) void m_init() @@ -54,7 +54,7 @@ m_get() DEBUG_CALL("m_get"); if (m_freelist.m_next == &m_freelist) { - m = (struct mbuf *)malloc(MSIZE); + m = (struct mbuf *)malloc(SLIRP_MSIZE); if (m == NULL) goto end_error; mbuf_alloced++; if (mbuf_alloced > MBUF_THRESH) @@ -71,7 +71,7 @@ m_get() m->m_flags = (flags | M_USEDLIST); /* Initialise it */ - m->m_size = MSIZE - sizeof(struct m_hdr); + m->m_size = SLIRP_MSIZE - sizeof(struct m_hdr); m->m_data = m->m_dat; m->m_len = 0; m->m_nextpkt = 0; |