Message ID | 20131031123644.32572.55345.stgit@nfdev.cica.es |
---|---|
State | Accepted |
Headers | show |
On Thu, Oct 31, 2013 at 01:36:44PM +0100, Arturo Borrero Gonzalez wrote: > Print a message when there is no support for some parser. > > Remove those EOPNOTSUPPs because they are unused. Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c index e147e79..32c8837 100644 --- a/tests/nft-parsing-test.c +++ b/tests/nft-parsing-test.c @@ -260,7 +260,7 @@ failparsing: json_decref(root); return -1; #else - errno = EOPNOTSUPP; + printf("Compiled without support for JSON.\n"); return -1; #endif } @@ -361,7 +361,7 @@ failparsing: strerror(errno)); return -1; #else - errno = EOPNOTSUPP; + printf("Compiled without support for XML.\n"); return -1; #endif }
Print a message when there is no support for some parser. Remove those EOPNOTSUPPs because they are unused. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> --- tests/nft-parsing-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html