diff options
author | Leonid Lisovskiy <lly.dev@gmail.com> | 2011-10-18 00:35:47 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-10-18 00:35:47 +0200 |
commit | 6c9c0a1dc9de48b59c103600a1f574a4a234b3d6 (patch) | |
tree | bc758b649ccccc95e4020431457362991155b1bd /networking/udhcp/dhcpc.c | |
parent | cd06e06eee3ef89e45b60d7122e5518995c7f65e (diff) | |
download | busybox-w32-6c9c0a1dc9de48b59c103600a1f574a4a234b3d6.tar.gz busybox-w32-6c9c0a1dc9de48b59c103600a1f574a4a234b3d6.tar.bz2 busybox-w32-6c9c0a1dc9de48b59c103600a1f574a4a234b3d6.zip |
udhcp: IF_UDHCP_VERBOSE() macro - improve code readability
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 3be09f4d7..29a6cd5a1 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -1077,11 +1077,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) | |||
1077 | 1077 | ||
1078 | /* Parse command line */ | 1078 | /* Parse command line */ |
1079 | /* O,x: list; -T,-t,-A take numeric param */ | 1079 | /* O,x: list; -T,-t,-A take numeric param */ |
1080 | opt_complementary = "O::x::T+:t+:A+" | 1080 | opt_complementary = "O::x::T+:t+:A+" IF_UDHCP_VERBOSE(":vv") ; |
1081 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 | ||
1082 | ":vv" | ||
1083 | #endif | ||
1084 | ; | ||
1085 | IF_LONG_OPTS(applet_long_options = udhcpc_longopts;) | 1081 | IF_LONG_OPTS(applet_long_options = udhcpc_longopts;) |
1086 | opt = getopt32(argv, "CV:H:h:F:i:np:qRr:s:T:t:SA:O:ox:fB" | 1082 | opt = getopt32(argv, "CV:H:h:F:i:np:qRr:s:T:t:SA:O:ox:fB" |
1087 | USE_FOR_MMU("b") | 1083 | USE_FOR_MMU("b") |
@@ -1095,9 +1091,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) | |||
1095 | , &list_O | 1091 | , &list_O |
1096 | , &list_x | 1092 | , &list_x |
1097 | IF_FEATURE_UDHCP_PORT(, &str_P) | 1093 | IF_FEATURE_UDHCP_PORT(, &str_P) |
1098 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 | 1094 | IF_UDHCP_VERBOSE(, &dhcp_verbose) |
1099 | , &dhcp_verbose | ||
1100 | #endif | ||
1101 | ); | 1095 | ); |
1102 | if (opt & (OPT_h|OPT_H)) | 1096 | if (opt & (OPT_h|OPT_H)) |
1103 | client_config.hostname = alloc_dhcp_option(DHCP_HOST_NAME, str_h, 0); | 1097 | client_config.hostname = alloc_dhcp_option(DHCP_HOST_NAME, str_h, 0); |