aboutsummaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-04 07:59:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-04 07:59:51 +0000
commit3b162ecdf6955e9610ec051e21b91a3efe48a030 (patch)
treeb2b3e75e8dfb4e32fc4d67af5682ed4ea8b800bd /networking/ifconfig.c
parent630a7f75e836b2d8669e571af9c5aa5b180c6ca8 (diff)
downloadbusybox-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.c10
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
257static int in_ether(const char *bufp, struct sockaddr *sap); 256static int in_ether(const char *bufp, struct sockaddr *sap);
258# if ENABLE_FEATURE_HWIB
259extern 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
269int ifconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 262int ifconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
270int ifconfig_main(int argc, char **argv) 263int 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 }