diff options
author | Roy Marples <roy@marples.name> | 2007-04-12 10:08:42 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-12 10:08:42 +0000 |
commit | 2728cef0e1b7f91fe1f23b3f85a50820743b75f2 (patch) | |
tree | 5f056163c0754806e8b5ad677d65fd1be8647c1f /src/rc-status.c | |
parent | 33d303f1844d98490bb24071e612bf5845c5eebb (diff) |
Hug getopt_long even though it's not POSIX. start-stop-daemon has always required this and all our supported platforms have it.
Diffstat (limited to 'src/rc-status.c')
-rw-r--r-- | src/rc-status.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rc-status.c b/src/rc-status.c index 0fcba811..7709e422 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -63,11 +63,11 @@ int main (int argc, char **argv) int j; const struct option longopts[] = { - {"all", no_argument, NULL, 'a'}, - {"list", no_argument, NULL, 'l'}, - {"servicelist", no_argument, NULL, 's'}, - {"unused", no_argument, NULL, 'u'}, - {NULL, 0, NULL, 0} + {"all", 0, NULL, 'a'}, + {"list", 0, NULL, 'l'}, + {"servicelist", 0, NULL, 's'}, + {"unused", 0, NULL, 'u'}, + {NULL, 0, NULL, 0} }; while ((c = getopt_long(argc, argv, "alsu", longopts, &option_index)) != -1) |