From 658ef8980f09e12ee8c4d9a52afdf94fd097b47b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 26 May 2012 15:53:28 +0200 Subject: nfct: fix compilation warning in cttimeout support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC nfct-extensions/timeout.o ../../src/nfct-extensions/timeout.c: In function ‘nfct_cmd_timeout_parse_params’: ../../src/nfct-extensions/timeout.c:40:27: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Pablo Neira Ayuso --- src/nfct-extensions/timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nfct-extensions/timeout.c b/src/nfct-extensions/timeout.c index a69537d..a1a5c52 100644 --- a/src/nfct-extensions/timeout.c +++ b/src/nfct-extensions/timeout.c @@ -37,7 +37,7 @@ nfct_cmd_timeout_usage(char *argv[]) int nfct_cmd_timeout_parse_params(int argc, char *argv[]) { - int cmd = NFCT_CMD_NONE, ret = 0; + int cmd = NFCT_CMD_NONE, ret; if (argc < 3) { nfct_cmd_timeout_usage(argv); @@ -77,7 +77,7 @@ int nfct_cmd_timeout_parse_params(int argc, char *argv[]) break; } - return 0; + return ret; } static int nfct_timeout_cb(const struct nlmsghdr *nlh, void *data) -- cgit v1.2.3