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]
/
init
/
halt.c
diff --git
a/init/halt.c
b/init/halt.c
index
ca5c153
..
e21ad57
100644
(file)
--- a/
init/halt.c
+++ b/
init/halt.c
@@
-35,7
+35,7
@@
RB_AUTOBOOT
for (which = 0; "hpr"[which] != *applet_name; which++);
/* Parse and handle arguments */
- flags = getopt32(arg
c, arg
v, "d:nf", &delay);
+ flags = getopt32(argv, "d:nf", &delay);
if (flags & 1) sleep(xatou(delay));
if (!(flags & 2)) sync();