Blame SOURCES/0030-ebtablesd-avoid-build-warning.patch

05e71a
From ee7071e6d7d93f10d38f4eb8c9a4c0ca8984c2d0 Mon Sep 17 00:00:00 2001
05e71a
From: Florian Westphal <fw@strlen.de>
05e71a
Date: Mon, 2 Jul 2018 18:06:11 +0200
05e71a
Subject: [PATCH] ebtablesd: avoid build warning
05e71a
MIME-Version: 1.0
05e71a
Content-Type: text/plain; charset=UTF-8
05e71a
Content-Transfer-Encoding: 8bit
05e71a
05e71a
ebtablesd.c:55:43: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
05e71a
05e71a
Signed-off-by: Florian Westphal <fw@strlen.de>
05e71a
Signed-off-by: Phil Sutter <psutter@redhat.com>
05e71a
---
05e71a
 ebtablesd.c | 5 +----
05e71a
 1 file changed, 1 insertion(+), 4 deletions(-)
05e71a
05e71a
diff --git a/ebtablesd.c b/ebtablesd.c
05e71a
index 062a2d6b5afa3..02d51fa115456 100644
05e71a
--- a/ebtablesd.c
05e71a
+++ b/ebtablesd.c
05e71a
@@ -52,7 +52,7 @@ int main(int argc_, char *argv_[])
05e71a
 	char *argv[EBTD_ARGC_MAX], *args[4], name[] = "mkdir",
05e71a
 	     mkdir_option[] = "-p", mkdir_dir[] = EBTD_PIPE_DIR,
05e71a
 	     cmdline[EBTD_CMDLINE_MAXLN];
05e71a
-	int readfd, base = 0, offset = 0, n = 0, ret = 0, quotemode = 0;
05e71a
+	int readfd, base = 0, offset = 0, n = 0, quotemode = 0;
05e71a
 
05e71a
 	/* Make sure the pipe directory exists */
05e71a
 	args[0] = name;
05e71a
@@ -74,19 +74,16 @@ int main(int argc_, char *argv_[])
05e71a
 
05e71a
 	if (mkfifo(EBTD_PIPE, 0600) < 0 && errno != EEXIST) {
05e71a
 		printf("Error creating FIFO " EBTD_PIPE "\n");
05e71a
-		ret = -1;
05e71a
 		goto do_exit;
05e71a
 	}
05e71a
 
05e71a
 	if ((readfd = open(EBTD_PIPE, O_RDONLY | O_NONBLOCK, 0)) == -1) {
05e71a
 		perror("open");
05e71a
-		ret = -1;
05e71a
 		goto do_exit;
05e71a
 	}
05e71a
 
05e71a
 	if (signal(SIGPIPE, sigpipe_handler) == SIG_ERR) {
05e71a
 		perror("signal");
05e71a
-		ret = -1;
05e71a
 		goto do_exit;
05e71a
 	}
05e71a
 
05e71a
-- 
05e71a
2.21.0
05e71a