From 5b53c54d2d96adaec2a4dd9e1478224df083c08f Mon Sep 17 00:00:00 2001 From: PHO Date: Sat, 27 Dec 2008 23:45:49 +0900 Subject: [PATCH] Use of getopt() was in an unportable way. --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0