bc: placate compiler warnings

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2019-06-08 12:58:16 +02:00
parent fa182a355a
commit 04a0b7f080

View File

@ -107,6 +107,7 @@ static unsigned str_to_jiffies(const char *time_str)
#define filedata bb_common_bufsiz1 #define filedata bb_common_bufsiz1
#if ENABLE_FEATURE_BRCTL_SHOW
static int read_file(const char *name) static int read_file(const char *name)
{ {
int n = open_read_close(name, filedata, COMMON_BUFSIZE - 1); int n = open_read_close(name, filedata, COMMON_BUFSIZE - 1);
@ -120,7 +121,6 @@ static int read_file(const char *name)
return n; return n;
} }
#if ENABLE_FEATURE_BRCTL_SHOW
/* NB: we are in /sys/class/net /* NB: we are in /sys/class/net
*/ */
static int show_bridge(const char *name, int need_hdr) static int show_bridge(const char *name, int need_hdr)