diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-04 07:59:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-04 07:59:51 +0000 |
commit | 3b162ecdf6955e9610ec051e21b91a3efe48a030 (patch) | |
tree | b2b3e75e8dfb4e32fc4d67af5682ed4ea8b800bd /networking/ifconfig.c | |
parent | 630a7f75e836b2d8669e571af9c5aa5b180c6ca8 (diff) | |
download | busybox-w32-3b162ecdf6955e9610ec051e21b91a3efe48a030.tar.gz busybox-w32-3b162ecdf6955e9610ec051e21b91a3efe48a030.tar.bz2 busybox-w32-3b162ecdf6955e9610ec051e21b91a3efe48a030.zip |
networking/interface.c: fix indentation
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 965fca344..e999741d1 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -252,20 +252,13 @@ static const struct options OptArray[] = { | |||
252 | /* | 252 | /* |
253 | * A couple of prototypes. | 253 | * A couple of prototypes. |
254 | */ | 254 | */ |
255 | |||
256 | #if ENABLE_FEATURE_IFCONFIG_HW | 255 | #if ENABLE_FEATURE_IFCONFIG_HW |
257 | static int in_ether(const char *bufp, struct sockaddr *sap); | 256 | static int in_ether(const char *bufp, struct sockaddr *sap); |
258 | # if ENABLE_FEATURE_HWIB | ||
259 | extern int in_ib(const char *bufp, struct sockaddr *sap); | ||
260 | # else | ||
261 | # define in_ib(a, b) 1 /* fail */ | ||
262 | # endif | ||
263 | #endif | 257 | #endif |
264 | 258 | ||
265 | /* | 259 | /* |
266 | * Our main function. | 260 | * Our main function. |
267 | */ | 261 | */ |
268 | |||
269 | int ifconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 262 | int ifconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
270 | int ifconfig_main(int argc, char **argv) | 263 | int ifconfig_main(int argc, char **argv) |
271 | { | 264 | { |
@@ -436,8 +429,7 @@ int ifconfig_main(int argc, char **argv) | |||
436 | bb_show_usage(); | 429 | bb_show_usage(); |
437 | /*safe_strncpy(host, *argv, sizeof(host));*/ | 430 | /*safe_strncpy(host, *argv, sizeof(host));*/ |
438 | host = *argv; | 431 | host = *argv; |
439 | if (hw_class == 1 ? in_ether(host, &sa) | 432 | if (hw_class == 1 ? in_ether(host, &sa) : in_ib(host, &sa)) |
440 | : in_ib(host, &sa)) | ||
441 | bb_error_msg_and_die("invalid hw-addr %s", host); | 433 | bb_error_msg_and_die("invalid hw-addr %s", host); |
442 | p = (char *) &sa; | 434 | p = (char *) &sa; |
443 | } | 435 | } |