]> gitweb @ CieloNegro.org - daemon.git/commitdiff
Use of getopt() was in an unportable way.
authorPHO <pho@cielonegro.org>
Sat, 27 Dec 2008 14:45:49 +0000 (23:45 +0900)
committerPHO <pho@cielonegro.org>
Sat, 27 Dec 2008 14:45:49 +0000 (23:45 +0900)
daemon.c

index 35b7269dbd17993bafcbe51a2e2c44dacc450e6c..abc076fdc1526cae3b204c860a90e2065b65a63d 100644 (file)
--- 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;