From 369c86e7889ef7f4c9902e25156d3193d4046a2a Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 7 Mar 2010 13:45:37 +0000 Subject: slirp: remove dead increments, spotted by clang Value stored is never read. Signed-off-by: Blue Swirl --- slirp/tcp_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slirp/tcp_subr.c') diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c index 7851307..0a370f1 100644 --- a/slirp/tcp_subr.c +++ b/slirp/tcp_subr.c @@ -857,7 +857,7 @@ tcp_emu(struct socket *so, struct mbuf *m) if (p == 7071) p = 0; *(u_char *)bptr++ = (p >> 8) & 0xff; - *(u_char *)bptr++ = p & 0xff; + *(u_char *)bptr = p & 0xff; ra = 0; return 1; /* port redirected, we're done */ break; -- cgit v1.1