summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Aitken <paitken@brocade.com>2015-06-04 10:15:00 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-06-12 14:11:15 +0200
commit6dcfe88a27318e313c1cb9130177a839926fe042 (patch)
tree1379fc77a45a584bdb587e2a956997df11fb717c /src
parent9d53701f4b1d5db5773513d5f370ca4a89371c9a (diff)
downloadconntrack-tools-6dcfe88a27318e313c1cb9130177a839926fe042.tar.gz
conntrack-tools-6dcfe88a27318e313c1cb9130177a839926fe042.zip
conntrackd: remove unused 'numbytes'
'numbytes' isn't used and can be removed. Signed-off-by: Paul Aitken <paitken@brocade.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/local.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/local.c b/src/local.c
index feff608..453799a 100644
--- a/src/local.c
+++ b/src/local.c
@@ -117,11 +117,10 @@ void local_client_destroy(int fd)
int do_local_client_step(int fd, void (*process)(char *buf))
{
- int numbytes;
char buf[1024];
memset(buf, 0, sizeof(buf));
- while ((numbytes = recv(fd, buf, sizeof(buf)-1, 0)) > 0) {
+ while (recv(fd, buf, sizeof(buf)-1, 0) > 0) {
buf[sizeof(buf)-1] = '\0';
if (process)
process(buf);