diff options
author | Florian Westphal <fw@strlen.de> | 2018-07-02 18:06:11 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-02 18:07:23 +0200 |
commit | 3de42b55ae249573425d11a5d77ab65f4bc5c628 (patch) | |
tree | 1b42337b7331dc4f98de0cfc2c2b1e46821835ec | |
parent | 131920089dc21db43e7dba7104c15889701230ea (diff) |
ebtablesd: avoid build warning
ebtablesd.c:55:43: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | ebtablesd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ebtablesd.c b/ebtablesd.c index 062a2d6..02d51fa 100644 --- a/ebtablesd.c +++ b/ebtablesd.c @@ -52,7 +52,7 @@ int main(int argc_, char *argv_[]) char *argv[EBTD_ARGC_MAX], *args[4], name[] = "mkdir", mkdir_option[] = "-p", mkdir_dir[] = EBTD_PIPE_DIR, cmdline[EBTD_CMDLINE_MAXLN]; - int readfd, base = 0, offset = 0, n = 0, ret = 0, quotemode = 0; + int readfd, base = 0, offset = 0, n = 0, quotemode = 0; /* Make sure the pipe directory exists */ args[0] = name; @@ -74,19 +74,16 @@ int main(int argc_, char *argv_[]) if (mkfifo(EBTD_PIPE, 0600) < 0 && errno != EEXIST) { printf("Error creating FIFO " EBTD_PIPE "\n"); - ret = -1; goto do_exit; } if ((readfd = open(EBTD_PIPE, O_RDONLY | O_NONBLOCK, 0)) == -1) { perror("open"); - ret = -1; goto do_exit; } if (signal(SIGPIPE, sigpipe_handler) == SIG_ERR) { perror("signal"); - ret = -1; goto do_exit; } |