]> granicus.if.org Git - sudo/commitdiff
calls to Exit now pass an arg
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 May 1994 00:23:08 +0000 (00:23 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 May 1994 00:23:08 +0000 (00:23 +0000)
visudo.c

index b9f7743a68ccf0fae45df0df18cea6f7a62e8c87..fefdd79b02c27be74ced5e02dba5e3d63f98c032 100644 (file)
--- a/visudo.c
+++ b/visudo.c
@@ -130,7 +130,7 @@ main(argc, argv)
     if ((sudoers_fp = fopen(sudoers, "r")) == NULL) {
        (void) fprintf(stderr, "%s: ", *argv);
        perror(sudoers);
-       Exit();
+       Exit(0);
     }
 
     /*
@@ -152,7 +152,7 @@ main(argc, argv)
     if ((sudoers_tmp_fp = fdopen(fd, "w")) == NULL) {
        (void) fprintf(stderr, "%s: ", *argv);
        perror(sudoers_tmp_file);
-       Exit();
+       Exit(0);
     }
 
     /*
@@ -184,21 +184,21 @@ main(argc, argv)
            if (stat(sudoers_tmp_file, &sbuf) < 0) {
                (void) fprintf(stderr, "%s: can't stat temporary file, %s unchanged\n",
                        sudoers, *argv);
-               Exit();
+               Exit(0);
            }
 
            /* file has size == 0 */
            if (sbuf.st_size == 0) {
                (void) fprintf(stderr, "%s: bad temporary file, %s unchanged\n",
                        sudoers, *argv);
-               Exit();
+               Exit(0);
            }
 
            /* re-open the sudoers file for parsing */
            if ((sudoers_tmp_fp = fopen(sudoers_tmp_file, "r")) == NULL) {
                (void) fprintf(stderr, "%s: can't re-open temporary file, %s unchanged\n",
                        sudoers, *argv);
-               Exit();
+               Exit(0);
            }
            yyin = sudoers_tmp_fp;
            yyout = stdout;
@@ -206,7 +206,7 @@ main(argc, argv)
            /* parse the file */
            if (yyparse()) {
                (void) fprintf(stderr, "yyparse() failed\n");
-               Exit();
+               Exit(0);
            }
 
            /*