From c183f64c71486bb2e4cb25856b012118374f0021 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 24 Nov 2012 10:51:18 +0000 Subject: [PATCH] compliancy: do not mix declarations and code Signed-off-by: Sami Kerola --- src/crontab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0