diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-09-01 13:11:01 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-09-01 16:40:14 +0200 |
commit | 3b8764b9d21009d7e163bdc20e4a80fb765bbdfc (patch) | |
tree | 21474e9aaf996da54349f26b9e791ce0fb08a571 /syslogd/syslogd.c | |
parent | dc30dd7530cee426bbb30425e255868ffa635c13 (diff) |
usyslogd: fix getopt arguments
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'syslogd/syslogd.c')
-rw-r--r-- | syslogd/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syslogd/syslogd.c b/syslogd/syslogd.c index 03f4b55..d2433e9 100644 --- a/syslogd/syslogd.c +++ b/syslogd/syslogd.c @@ -40,14 +40,14 @@ static const struct option long_opts[] = { { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, { "rotate-replace", no_argument, NULL, 'r' }, + { "chroot", no_argument, NULL, 'c' }, { "max-size", required_argument, NULL, 'm' }, { "user", required_argument, NULL, 'u' }, { "group", required_argument, NULL, 'g' }, - { "chroot", required_argument, NULL, 'c' }, { NULL, 0, NULL, 0 }, }; -const char *short_opts = "hVrm:"; +static const char *short_opts = "hVcrm:u:g:"; const char *version_string = "usyslogd (pygos init) " PACKAGE_VERSION "\n" |