]> granicus.if.org Git - cronie/commitdiff
compliancy: do not mix declarations and code
authorSami Kerola <kerolasa@iki.fi>
Sat, 24 Nov 2012 10:51:18 +0000 (10:51 +0000)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 26 Nov 2012 16:08:25 +0000 (17:08 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
src/crontab.c

index cbf0aac41b2a113ed66533450e907f383c7dc008..5b609eeea6ffc91560684c149ea2be55191e2063 100644 (file)
@@ -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;