diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /miscutils | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.bz2 busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.zip |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 4 | ||||
-rw-r--r-- | miscutils/devfsd.c | 6 | ||||
-rw-r--r-- | miscutils/less.c | 4 | ||||
-rw-r--r-- | miscutils/time.c | 2 | ||||
-rw-r--r-- | miscutils/watchdog.c | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 6db4df422..2bed5a4b1 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -797,7 +797,7 @@ ForkJob(const char *user, CronLine *line, int mailFd, | |||
797 | if (mail_filename) { | 797 | if (mail_filename) { |
798 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); | 798 | fdprintf(1, "Exec failed: %s -c %s\n", prog, arg); |
799 | } | 799 | } |
800 | _exit(0); | 800 | _exit(EXIT_SUCCESS); |
801 | } | 801 | } |
802 | 802 | ||
803 | line->cl_Pid = pid; | 803 | line->cl_Pid = pid; |
@@ -930,7 +930,7 @@ static void RunJob(const char *user, CronLine *line) | |||
930 | execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL); | 930 | execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", line->cl_Shell, NULL); |
931 | crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, | 931 | crondlog(ERR20 "can't exec, user %s cmd %s %s %s", user, |
932 | DEFAULT_SHELL, "-c", line->cl_Shell); | 932 | DEFAULT_SHELL, "-c", line->cl_Shell); |
933 | _exit(0); | 933 | _exit(EXIT_SUCCESS); |
934 | } | 934 | } |
935 | if (pid < 0) { | 935 | if (pid < 0) { |
936 | /* FORK FAILED */ | 936 | /* FORK FAILED */ |
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index bb6b679b9..782457ac7 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -283,9 +283,9 @@ static const char bb_msg_variable_not_found[] ALIGN1 = "variable: %s not found"; | |||
283 | #else | 283 | #else |
284 | #define info_logger(p, fmt, args...) | 284 | #define info_logger(p, fmt, args...) |
285 | #define msg_logger(p, fmt, args...) | 285 | #define msg_logger(p, fmt, args...) |
286 | #define msg_logger_and_die(p, fmt, args...) exit(1) | 286 | #define msg_logger_and_die(p, fmt, args...) exit(EXIT_FAILURE) |
287 | #define error_logger(p, fmt, args...) | 287 | #define error_logger(p, fmt, args...) |
288 | #define error_logger_and_die(p, fmt, args...) exit(1) | 288 | #define error_logger_and_die(p, fmt, args...) exit(EXIT_FAILURE) |
289 | #endif | 289 | #endif |
290 | 290 | ||
291 | static void safe_memcpy(char *dest, const char *src, int len) | 291 | static void safe_memcpy(char *dest, const char *src, int len) |
@@ -402,7 +402,7 @@ int devfsd_main(int argc, char **argv) | |||
402 | dir_operation(SERVICE, mount_point, 0, NULL); | 402 | dir_operation(SERVICE, mount_point, 0, NULL); |
403 | 403 | ||
404 | if (ENABLE_DEVFSD_FG_NP && no_polling) | 404 | if (ENABLE_DEVFSD_FG_NP && no_polling) |
405 | exit(0); | 405 | exit(EXIT_SUCCESS); |
406 | 406 | ||
407 | if (ENABLE_DEVFSD_VERBOSE || ENABLE_DEBUG) | 407 | if (ENABLE_DEVFSD_VERBOSE || ENABLE_DEBUG) |
408 | logmode = LOGMODE_BOTH; | 408 | logmode = LOGMODE_BOTH; |
diff --git a/miscutils/less.c b/miscutils/less.c index 25b91c0fe..f69bce97e 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -882,7 +882,7 @@ static void colon_process(void) | |||
882 | change_file(-1); | 882 | change_file(-1); |
883 | break; | 883 | break; |
884 | case 'q': | 884 | case 'q': |
885 | less_exit(0); | 885 | less_exit(EXIT_SUCCESS); |
886 | break; | 886 | break; |
887 | case 'x': | 887 | case 'x': |
888 | change_file(0); | 888 | change_file(0); |
@@ -1270,7 +1270,7 @@ static void keypress_process(int keypress) | |||
1270 | buffer_line(cur_fline); | 1270 | buffer_line(cur_fline); |
1271 | break; | 1271 | break; |
1272 | case 'q': case 'Q': | 1272 | case 'q': case 'Q': |
1273 | less_exit(0); | 1273 | less_exit(EXIT_SUCCESS); |
1274 | break; | 1274 | break; |
1275 | #if ENABLE_FEATURE_LESS_MARKS | 1275 | #if ENABLE_FEATURE_LESS_MARKS |
1276 | case 'm': | 1276 | case 'm': |
diff --git a/miscutils/time.c b/miscutils/time.c index ed4385948..a6d158c53 100644 --- a/miscutils/time.c +++ b/miscutils/time.c | |||
@@ -424,5 +424,5 @@ int time_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
424 | return WTERMSIG(res.waitstatus); | 424 | return WTERMSIG(res.waitstatus); |
425 | if (WIFEXITED(res.waitstatus)) | 425 | if (WIFEXITED(res.waitstatus)) |
426 | return WEXITSTATUS(res.waitstatus); | 426 | return WEXITSTATUS(res.waitstatus); |
427 | fflush_stdout_and_exit(0); | 427 | fflush_stdout_and_exit(EXIT_SUCCESS); |
428 | } | 428 | } |
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index a5061f5d7..4ad21cbc9 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c | |||
@@ -20,7 +20,7 @@ static void watchdog_shutdown(int sig ATTRIBUTE_UNUSED) | |||
20 | write(3, &V, 1); /* Magic, see watchdog-api.txt in kernel */ | 20 | write(3, &V, 1); /* Magic, see watchdog-api.txt in kernel */ |
21 | if (ENABLE_FEATURE_CLEAN_UP) | 21 | if (ENABLE_FEATURE_CLEAN_UP) |
22 | close(3); | 22 | close(3); |
23 | exit(0); | 23 | exit(EXIT_SUCCESS); |
24 | } | 24 | } |
25 | 25 | ||
26 | int watchdog_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 26 | int watchdog_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |