diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
commit | 80b8b39899a09c7516920cda5fd343b3086d4824 (patch) | |
tree | aa9903fd6b64d19c5f640fa302272d85c92b204e /networking/ifconfig.c | |
parent | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff) | |
download | busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.gz busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.bz2 busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.zip |
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 5742399c5..5e11b2b7c 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -337,7 +337,7 @@ int ifconfig_main(int argc, char **argv) | |||
337 | } | 337 | } |
338 | 338 | ||
339 | /* We fell through, so treat as possible hostname. */ | 339 | /* We fell through, so treat as possible hostname. */ |
340 | a1op = Arg1Opt + (sizeof(Arg1Opt) / sizeof(Arg1Opt[0])) - 1; | 340 | a1op = Arg1Opt + ARRAY_SIZE(Arg1Opt) - 1; |
341 | mask = op->arg_flags; | 341 | mask = op->arg_flags; |
342 | goto HOSTNAME; | 342 | goto HOSTNAME; |
343 | 343 | ||