diff options
author | Denys Vlasenko | 2019-06-08 12:35:06 +0200 |
---|---|---|
committer | Denys Vlasenko | 2019-06-08 12:35:06 +0200 |
commit | 3e463e1cfd8d6c42b4ee866723f84ca8adb32da7 (patch) | |
tree | c9a1470238521add273d882eecebfe475c43e011 /networking | |
parent | 023ae75fc663d7978ea43e073be6f50b39f1f196 (diff) | |
download | busybox-3e463e1cfd8d6c42b4ee866723f84ca8adb32da7.zip busybox-3e463e1cfd8d6c42b4ee866723f84ca8adb32da7.tar.gz |
brctl: placate compiler warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/brctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/brctl.c b/networking/brctl.c index f44ad9c..cbdc7c6 100644 --- a/networking/brctl.c +++ b/networking/brctl.c @@ -120,6 +120,7 @@ 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) @@ -176,7 +177,9 @@ static int show_bridge(const char *name, int need_hdr) bb_putchar('\n'); return 0; } +#endif +#if ENABLE_FEATURE_BRCTL_FANCY static void write_uint(const char *name, const char *leaf, unsigned val) { char pathbuf[IFNAMSIZ + sizeof("/bridge/bridge_id") + 32]; @@ -193,6 +196,7 @@ static void write_uint(const char *name, const char *leaf, unsigned val) bb_simple_perror_msg_and_die(name); close(fd); } +#endif int brctl_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int brctl_main(int argc UNUSED_PARAM, char **argv) |