projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms...
[oweals/busybox.git]
/
networking
/
ifconfig.c
diff --git
a/networking/ifconfig.c
b/networking/ifconfig.c
index 5742399c5b460b6125513b4b860b33946305c94d..5e11b2b7c4ca45d90c074cc25626e7c3d5db59bf 100644
(file)
--- a/
networking/ifconfig.c
+++ b/
networking/ifconfig.c
@@
-337,7
+337,7
@@
int ifconfig_main(int argc, char **argv)
}
/* We fell through, so treat as possible hostname. */
- a1op = Arg1Opt +
(sizeof(Arg1Opt) / sizeof(Arg1Opt[0])
) - 1;
+ a1op = Arg1Opt +
ARRAY_SIZE(Arg1Opt
) - 1;
mask = op->arg_flags;
goto HOSTNAME;