projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d995493
)
Start the great EXIT_{SUCCESS,FAILURE} migration.
author
Matt Kraai
<kraai@debian.org>
Fri, 22 Sep 2000 03:45:34 +0000
(
03:45
-0000)
committer
Matt Kraai
<kraai@debian.org>
Fri, 22 Sep 2000 03:45:34 +0000
(
03:45
-0000)
coreutils/yes.c
patch
|
blob
|
history
yes.c
patch
|
blob
|
history
diff --git
a/coreutils/yes.c
b/coreutils/yes.c
index f41bbb6ef4375a878afe463ce4cd31c0ac15f2d8..11fa537a0488a3238d086b543dba142f6e5f61a9 100644
(file)
--- a/
coreutils/yes.c
+++ b/
coreutils/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;
}
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;
}