projects
/
platform
/
upstream
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't pass argc in getopt32, it's superfluous
[platform/upstream/busybox.git]
/
networking
/
netstat.c
diff --git
a/networking/netstat.c
b/networking/netstat.c
index
9fd3d2f
..
5bacb47
100644
(file)
--- a/
networking/netstat.c
+++ b/
networking/netstat.c
@@
-497,7
+497,7
@@
int netstat_main(int argc, char **argv)
#endif
/* Option string must match NETSTAT_xxx constants */
- opt = getopt32(arg
c, arg
v, NETSTAT_OPTS);
+ opt = getopt32(argv, NETSTAT_OPTS);
if (opt & 0x1) { // -l
flags &= ~NETSTAT_CONNECTED;
flags |= NETSTAT_LISTENING;