From: Sami Kerola Date: Sat, 24 Nov 2012 10:51:18 +0000 (+0000) Subject: compliancy: do not mix declarations and code X-Git-Tag: cronie1.4.10~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c183f64c71486bb2e4cb25856b012118374f0021;p=cronie compliancy: do not mix declarations and code Signed-off-by: Sami Kerola --- diff --git a/src/crontab.c b/src/crontab.c index cbf0aac..5b609ee 100644 --- a/src/crontab.c +++ b/src/crontab.c @@ -99,6 +99,7 @@ static void usage(const char *msg) { int main(int argc, char *argv[]) { int exitstatus; + char *n = "-"; /*set the n string to - so we have a valid string to use */ if ((ProgramName=strrchr(argv[0], '/')) == NULL) { ProgramName = argv[0]; @@ -116,7 +117,6 @@ int main(int argc, char *argv[]) { #if defined(BSD) setlinebuf(stderr); #endif - char *n = "-"; /*set the n string to - so we have a valid string to use */ /*should we desire to make changes to behavior later. */ if (argv[1] == NULL) { /* change behavior to allow crontab to take stdin with no '-' */ argv[1] = n;