[git commit] bc: placate compiler warnings

Denys Vlasenko vda.linux at googlemail.com
Sat Jun 8 10:58:16 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=04a0b7f0805e1faac9e277c46328e8785966fa6c
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/brctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/brctl.c b/networking/brctl.c
index cbdc7c6b1..586ca9b0c 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -107,6 +107,7 @@ static unsigned str_to_jiffies(const char *time_str)
 
 #define filedata bb_common_bufsiz1
 
+#if ENABLE_FEATURE_BRCTL_SHOW
 static int read_file(const char *name)
 {
 	int n = open_read_close(name, filedata, COMMON_BUFSIZE - 1);
@@ -120,7 +121,6 @@ static int read_file(const char *name)
 	return n;
 }
 
-#if ENABLE_FEATURE_BRCTL_SHOW
 /* NB: we are in /sys/class/net
  */
 static int show_bridge(const char *name, int need_hdr)


More information about the busybox-cvs mailing list