diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-07-28 09:32:35 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-07-28 09:32:35 +0000 |
commit | c2742a3d34d1104fa929ee533ddcf6294615f33d (patch) | |
tree | ef5d7e16f7f8a5d73ea68601a8c13401195af18f /mdk-stage1 | |
parent | 139986c92ef9147203844148c9cf78c70355b007 (diff) | |
download | drakx-backup-do-not-use-c2742a3d34d1104fa929ee533ddcf6294615f33d.tar drakx-backup-do-not-use-c2742a3d34d1104fa929ee533ddcf6294615f33d.tar.gz drakx-backup-do-not-use-c2742a3d34d1104fa929ee533ddcf6294615f33d.tar.bz2 drakx-backup-do-not-use-c2742a3d34d1104fa929ee533ddcf6294615f33d.tar.xz drakx-backup-do-not-use-c2742a3d34d1104fa929ee533ddcf6294615f33d.zip |
fix indentation
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/network.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 513c4784b..b7b2e05af 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -619,9 +619,9 @@ static char * auto_select_up_intf(void) ptr = interfaces; while (ptr && *ptr) { - struct ifreq ifr; + struct ifreq ifr; struct ethtool_value edata; - strncpy(ifr.ifr_name, *ptr, IFNAMSIZ); + strncpy(ifr.ifr_name, *ptr, IFNAMSIZ); edata.cmd = ETHTOOL_GLINK; ifr.ifr_data = (caddr_t)&edata; if (ioctl(s, SIOCETHTOOL, &ifr) == 0 && edata.data) { @@ -633,7 +633,7 @@ static char * auto_select_up_intf(void) close(s); - return NULL; + return NULL; } @@ -665,13 +665,13 @@ static char * interface_select(void) if (count == 1) return *interfaces; - /* this can't be done in ask_from_list_comments_auto because "auto" isn't in the interfaces list */ - choice = get_auto_value("interface"); - if (choice && streq(choice, "auto")) { - choice = auto_select_up_intf(); - if (choice) - return choice; - } + /* this can't be done in ask_from_list_comments_auto because "auto" isn't in the interfaces list */ + choice = get_auto_value("interface"); + if (choice && streq(choice, "auto")) { + choice = auto_select_up_intf(); + if (choice) + return choice; + } i = 0; while (interfaces[i]) { |