From: PHO Date: Sat, 27 Dec 2008 14:45:49 +0000 (+0900) Subject: Use of getopt() was in an unportable way. X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=daemon.git;a=commitdiff_plain;h=5b53c54d2d96adaec2a4dd9e1478224df083c08f;hp=43f635047ae14880f964052ef449627fe0984913 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;