* [PATCH] remove unused 'numbytes'
@ 2015-06-01 9:22 Paul Aitken
0 siblings, 0 replies; 3+ messages in thread
From: Paul Aitken @ 2015-06-01 9:22 UTC (permalink / raw)
To: netfilter-devel; +Cc: Pablo Neira Ayuso
'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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] remove unused 'numbytes'
@ 2015-06-04 9:15 Paul Aitken
2015-06-12 13:08 ` Pablo Neira Ayuso
0 siblings, 1 reply; 3+ messages in thread
From: Paul Aitken @ 2015-06-04 9:15 UTC (permalink / raw)
To: netfilter-devel; +Cc: pablo, paitken
'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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] remove unused 'numbytes'
2015-06-04 9:15 [PATCH] remove unused 'numbytes' Paul Aitken
@ 2015-06-12 13:08 ` Pablo Neira Ayuso
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2015-06-12 13:08 UTC (permalink / raw)
To: Paul Aitken; +Cc: netfilter-devel
On Thu, Jun 04, 2015 at 10:15:00AM +0100, Paul Aitken wrote:
> 'numbytes' isn't used and can be removed.
Also applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-12 13:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 9:15 [PATCH] remove unused 'numbytes' Paul Aitken
2015-06-12 13:08 ` Pablo Neira Ayuso
-- strict thread matches above, loose matches on Subject: below --
2015-06-01 9:22 Paul Aitken
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).