From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjzCt-000736-VV for qemu-devel@nongnu.org; Thu, 21 Jul 2011 15:46:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjzCs-0006ou-Ra for qemu-devel@nongnu.org; Thu, 21 Jul 2011 15:46:51 -0400 From: Stefan Weil Date: Thu, 21 Jul 2011 21:46:45 +0200 Message-Id: <1311277605-6848-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] slirp: Fix unusual "comments" in unused code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: qemu-trivial@nongnu.org cppcheck detected two rather strange comments which were not correctly written as C comments. They did not cause any harm because they were framed by #ifdef notdef ... #endif, so they were never compiled. Fix them nevertheless (we could also remove the unused code). Signed-off-by: Stefan Weil --- slirp/ip_input.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slirp/ip_input.c b/slirp/ip_input.c index 768ab0c..53871c2 100644 --- a/slirp/ip_input.c +++ b/slirp/ip_input.c @@ -531,7 +531,7 @@ typedef uint32_t n_time; */ break; } - off--; / * 0 origin * / + off--; /* 0 origin */ if (off > optlen - sizeof(struct in_addr)) { /* * End of source route. Should be for us. @@ -574,7 +574,7 @@ typedef uint32_t n_time; /* * If no space remains, ignore. */ - off--; * 0 origin * + off--; /* 0 origin */ if (off > optlen - sizeof(struct in_addr)) break; bcopy((caddr_t)(&ip->ip_dst), (caddr_t)&ipaddr.sin_addr, -- 1.7.2.5