netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Aitken <paitken@brocade.com>
To: <netfilter-devel@vger.kernel.org>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Subject: [PATCH] remove unused 'numbytes'
Date: Mon, 1 Jun 2015 10:22:16 +0100	[thread overview]
Message-ID: <556C2448.9050306@brocade.com> (raw)

'numbytes' isn't used and can be removed.

Signed-off-by: Paul Aitken <paitken@brocade.com>
---
  src/local.c | 3 +--
  1 file changed, 1 insertion(+), 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);
-- 
1.9.1


             reply	other threads:[~2015-06-01  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01  9:22 Paul Aitken [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-06-04  9:15 [PATCH] remove unused 'numbytes' Paul Aitken
2015-06-12 13:08 ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=556C2448.9050306@brocade.com \
    --to=paitken@brocade.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).