From: Ana Rey <anarey@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: Ana Rey <anarey@gmail.com>
Subject: [libnftnl PATCH 1/3] ruleset: Add an end of line in the exit of ruleset.
Date: Wed, 9 Apr 2014 10:53:59 +0200 [thread overview]
Message-ID: <15bbda6958ec01d0088c386537288dcfe1ad8731.1397032579.git.anarey@gmail.com> (raw)
In-Reply-To: <cover.1397032579.git.anarey@gmail.com>
In-Reply-To: <cover.1397032579.git.anarey@gmail.com>
Add an end of line in the exit of ruleset.
Signed-off-by: Ana Rey <anarey@gmail.com>
---
src/ruleset.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ruleset.c b/src/ruleset.c
index 3cbec09..181aeae 100644
--- a/src/ruleset.c
+++ b/src/ruleset.c
@@ -818,7 +818,7 @@ nft_ruleset_do_snprintf(char *buf, size_t size, const struct nft_ruleset *rs,
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
}
- ret = snprintf(buf+offset, size, "%s", nft_ruleset_o_closetag(type));
+ ret = snprintf(buf+offset, size, "%s\n", nft_ruleset_o_closetag(type));
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
return offset;
--
1.9.0
next prev parent reply other threads:[~2014-04-09 8:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-09 8:53 [libnftnl PATCH 0/3] New features in nft-parsing-test Ana Rey
2014-04-09 8:53 ` Ana Rey [this message]
2014-04-09 10:11 ` [libnftnl PATCH 1/3] ruleset: Add an end of line in the exit of ruleset Arturo Borrero Gonzalez
2014-04-09 14:56 ` Ana Rey
2014-04-09 14:59 ` Ana Rey
2014-04-09 8:54 ` [libnftnl PATCH 2/3] tests: New tools to uptade xml and json testfiles Ana Rey
2014-04-09 8:54 ` [libnftnl PATCH 3/3] tests: Add support to check a json or xml testfile Ana Rey
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=15bbda6958ec01d0088c386537288dcfe1ad8731.1397032579.git.anarey@gmail.com \
--to=anarey@gmail.com \
--cc=netfilter-devel@vger.kernel.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).