From: mathieu.poirier@linaro.org
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org,
john.stultz@linaro.org, mathieu.poirier@linaro.org
Subject: [PATCH] nfacct: remove unecessary end of line check
Date: Tue, 6 May 2014 11:48:31 -0600 [thread overview]
Message-ID: <1399398511-15854-1-git-send-email-mathieu.poirier@linaro.org> (raw)
From: Mathieu Poirier <mathieu.poirier@linaro.org>
The EOF character alone should determine the end of input during
restore operations.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
src/nfacct.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/nfacct.c b/src/nfacct.c
index e1c405e..091a5c9 100644
--- a/src/nfacct.c
+++ b/src/nfacct.c
@@ -581,10 +581,6 @@ static int nfacct_cmd_restore(int argc, char *argv[])
return -1;
}
- /* a single ';' terminates the input */
- if (strncmp(buffer, ";", 1) == 0)
- break;
-
*semicolon = 0;
ret = flags = 0;
quota = 0;
--
1.9.1
next reply other threads:[~2014-05-06 17:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 17:48 mathieu.poirier [this message]
2014-05-07 13:44 ` [PATCH] nfacct: remove unecessary end of line check 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=1399398511-15854-1-git-send-email-mathieu.poirier@linaro.org \
--to=mathieu.poirier@linaro.org \
--cc=john.stultz@linaro.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=netfilter@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).