*: s/spaces/tabs/

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-07-26 12:47:36 +02:00
parent f0b82142b2
commit b4d035165f
2 changed files with 15 additions and 15 deletions

View File

@ -10,27 +10,27 @@ for that.
We are doomed to have problems with ifup/ifdown. Just look as this code: We are doomed to have problems with ifup/ifdown. Just look as this code:
static const struct dhcp_client_t ext_dhcp_clients[] = { static const struct dhcp_client_t ext_dhcp_clients[] = {
{ "dhcpcd", "<up cmd>", "<down cmd>" }, { "dhcpcd", "<up cmd>", "<down cmd>" },
{ "dhclient", ........ }, { "dhclient", ........ },
{ "pump", ........ }, { "pump", ........ },
{ "udhcpc", ........ }, { "udhcpc", ........ },
}; };
static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
{ {
#if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP #if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP
int i ; int i ;
for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) { for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) {
if (exists_execable(ext_dhcp_clients[i].name)) if (exists_execable(ext_dhcp_clients[i].name))
return execute(ext_dhcp_clients[i].stopcmd, ifd, exec); return execute(ext_dhcp_clients[i].stopcmd, ifd, exec);
} }
bb_error_msg("no dhcp clients found, using static interface shutdown"); bb_error_msg("no dhcp clients found, using static interface shutdown");
return static_down(ifd, exec); return static_down(ifd, exec);
#elif ENABLE_UDHCPC #elif ENABLE_UDHCPC
return execute("kill " return execute("kill "
"`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
#else #else
return 0; /* no dhcp support */ return 0; /* no dhcp support */
#endif #endif
} }

View File

@ -473,7 +473,7 @@ void conf_parse(const char *name)
menu_finalize(&rootmenu); menu_finalize(&rootmenu);
for_all_symbols(i, sym) { for_all_symbols(i, sym) {
sym_check_deps(sym); sym_check_deps(sym);
} }
sym_change_count = 1; sym_change_count = 1;
} }