Start the great EXIT_{SUCCESS,FAILURE} migration.
authorMatt Kraai <kraai@debian.org>
Fri, 22 Sep 2000 03:45:34 +0000 (03:45 -0000)
committerMatt Kraai <kraai@debian.org>
Fri, 22 Sep 2000 03:45:34 +0000 (03:45 -0000)
coreutils/yes.c
yes.c

index f41bbb6ef4375a878afe463ce4cd31c0ac15f2d8..11fa537a0488a3238d086b543dba142f6e5f61a9 100644 (file)
@@ -34,7 +34,7 @@ extern int yes_main(int argc, char **argv)
                while (1)
                        if (puts("y") == EOF) {
                                perror("yes");
-                               exit(FALSE);
+                               return EXIT_FAILURE;
                        }
        }
 
@@ -43,7 +43,8 @@ extern int yes_main(int argc, char **argv)
                        if (fputs(argv[i], stdout) == EOF
                                || putchar(i == argc - 1 ? '\n' : ' ') == EOF) {
                                perror("yes");
-                               exit(FALSE);
+                               return EXIT_FAILURE;
                        }
-       exit(TRUE);
+
+       return EXIT_SUCCESS;
 }
diff --git a/yes.c b/yes.c
index f41bbb6ef4375a878afe463ce4cd31c0ac15f2d8..11fa537a0488a3238d086b543dba142f6e5f61a9 100644 (file)
--- a/yes.c
+++ b/yes.c
@@ -34,7 +34,7 @@ extern int yes_main(int argc, char **argv)
                while (1)
                        if (puts("y") == EOF) {
                                perror("yes");
-                               exit(FALSE);
+                               return EXIT_FAILURE;
                        }
        }
 
@@ -43,7 +43,8 @@ extern int yes_main(int argc, char **argv)
                        if (fputs(argv[i], stdout) == EOF
                                || putchar(i == argc - 1 ? '\n' : ' ') == EOF) {
                                perror("yes");
-                               exit(FALSE);
+                               return EXIT_FAILURE;
                        }
-       exit(TRUE);
+
+       return EXIT_SUCCESS;
 }