summaryrefslogtreecommitdiff
path: root/loginutils/login.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-05-19 09:29:47 +0000
committerBernhard Reutner-Fischer2008-05-19 09:29:47 +0000
commit636a1f85e89432601c59cdc3239fc867b4adf051 (patch)
treed43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /loginutils/login.c
parentcb83abd7b6b052224c1f3b998e863aac76914afd (diff)
downloadbusybox-636a1f85e89432601c59cdc3239fc867b4adf051.zip
busybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'loginutils/login.c')
-rw-r--r--loginutils/login.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index e8fe74e..900a7c0 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -130,7 +130,7 @@ static void die_if_nologin(void)
fclose(fp);
} else
puts("\r\nSystem closed for routine maintenance\r");
- exit(1);
+ exit(EXIT_FAILURE);
}
#else
static ALWAYS_INLINE void die_if_nologin(void) {}
@@ -178,18 +178,18 @@ static void get_username_or_die(char *buf, int size_buf)
/* skip whitespace */
do {
c = getchar();
- if (c == EOF) exit(1);
+ if (c == EOF) exit(EXIT_FAILURE);
if (c == '\n') {
- if (!--cntdown) exit(1);
+ if (!--cntdown) exit(EXIT_FAILURE);
goto prompt;
}
} while (isspace(c));
*buf++ = c;
if (!fgets(buf, size_buf-2, stdin))
- exit(1);
+ exit(EXIT_FAILURE);
if (!strchr(buf, '\n'))
- exit(1);
+ exit(EXIT_FAILURE);
while (isgraph(*buf)) buf++;
*buf = '\0';
}