From: PHO Date: Sat, 27 Dec 2008 14:45:49 +0000 (+0900) Subject: Use of getopt() was in an unportable way. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=5b53c54d2d96adaec2a4dd9e1478224df083c08f;p=daemon.git Use of getopt() was in an unportable way. --- diff --git a/daemon.c b/daemon.c index 35b7269..abc076f 100644 --- a/daemon.c +++ b/daemon.c @@ -56,7 +56,7 @@ main(int argc, char *argv[]) nochdir = noclose = 1; pidfile = user = NULL; - while ((ch = getopt(argc, argv, "-cfp:u:")) != -1) { + while ((ch = getopt(argc, argv, "cfp:u:")) != -1) { switch (ch) { case 'c': nochdir = 0;