aboutsummaryrefslogtreecommitdiff
path: root/loginutils/getty.c
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:29:47 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:29:47 +0000
commit636a1f85e89432601c59cdc3239fc867b4adf051 (patch)
treed43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /loginutils/getty.c
parentcb83abd7b6b052224c1f3b998e863aac76914afd (diff)
downloadbusybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz
busybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.bz2
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r--loginutils/getty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 5e161823a..f022aec59 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -423,7 +423,7 @@ static char *get_logname(char *logname, unsigned size_logname,
/* Do not report trivial EINTR/EIO errors. */
if (read(0, &c, 1) < 1) {
if (errno == EINTR || errno == EIO)
- exit(0);
+ exit(EXIT_SUCCESS);
bb_perror_msg_and_die("%s: read", op->tty);
}
@@ -475,7 +475,7 @@ static char *get_logname(char *logname, unsigned size_logname,
}
break;
case CTL('D'):
- exit(0);
+ exit(EXIT_SUCCESS);
default:
if (!isascii(ascval) || !isprint(ascval)) {
/* ignore garbage characters */