diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-05-26 15:53:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-05-26 15:53:28 +0200 |
commit | 658ef8980f09e12ee8c4d9a52afdf94fd097b47b (patch) | |
tree | eb76f6924d4ac60506cd24961534afc87df2f1db /src | |
parent | 790d922771acf3a1dc7a2bd8cdbf27ac5ed83401 (diff) | |
download | conntrack-tools-658ef8980f09e12ee8c4d9a52afdf94fd097b47b.tar.gz conntrack-tools-658ef8980f09e12ee8c4d9a52afdf94fd097b47b.zip |
nfct: fix compilation warning in cttimeout support
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 <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/nfct-extensions/timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |