From 0942916b729e375df32dae5874c74aaf4f5743a1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 14 May 2007 12:24:18 +0000 Subject: Allow time for pidfiles to be created, #178274. Use int instead of char for getopt, #178084 thanks to drizztbsd. --- src/runscript.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/runscript.c') diff --git a/src/runscript.c b/src/runscript.c index 65f31595..b35474e1 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -972,7 +972,7 @@ int main (int argc, char **argv) bool doneone = false; char pid[16]; int retval; - char c; + int opt; service = argv[1]; /* Show help if insufficient args */ @@ -1079,9 +1079,9 @@ int main (int argc, char **argv) argv++; /* Right then, parse any options there may be */ - while ((c = getopt_long (argc, argv, getoptstring, - longopts, (int *) 0)) != -1) - switch (c) { + while ((opt = getopt_long (argc, argv, getoptstring, + longopts, (int *) 0)) != -1) + switch (opt) { case 'd': setenv ("RC_DEBUG", "yes", 1); break; -- cgit v1.2.3