diff options
author | Roy Marples <roy@marples.name> | 2007-05-14 12:24:18 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-05-14 12:24:18 +0000 |
commit | 0942916b729e375df32dae5874c74aaf4f5743a1 (patch) | |
tree | e02e63aa20ad55047eae69ce2ab63e6f43894a00 /src/rc-status.c | |
parent | 86c7d44d66a64d923294cf5d830b8fd3bf0e3db1 (diff) |
Allow time for pidfiles to be created, #178274.
Use int instead of char for getopt, #178084 thanks to drizztbsd.
Diffstat (limited to 'src/rc-status.c')
-rw-r--r-- | src/rc-status.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rc-status.c b/src/rc-status.c index bf472c1d..358e3439 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -70,13 +70,12 @@ int main (int argc, char **argv) char **services = NULL; char *level; char *service; - char c; - int option_index = 0; + int opt; int i; int j; - while ((c = getopt_long(argc, argv, getoptstring, longopts, &option_index)) != -1) - switch (c) { + while ((opt = getopt_long(argc, argv, getoptstring, longopts, (int *) 0)) != -1) + switch (opt) { case 'a': levels = rc_get_runlevels (); break; |