aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:29:47 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:29:47 +0000
commit636a1f85e89432601c59cdc3239fc867b4adf051 (patch)
treed43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /coreutils
parentcb83abd7b6b052224c1f3b998e863aac76914afd (diff)
downloadbusybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cal.c2
-rw-r--r--coreutils/env.c2
-rw-r--r--coreutils/printenv.c2
-rw-r--r--coreutils/printf.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 8a08a9ae7..8a93057b0 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -179,7 +179,7 @@ int cal_main(int argc, char **argv)
}
}
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
/*
diff --git a/coreutils/env.c b/coreutils/env.c
index 20cf348d6..e21740d98 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -85,7 +85,7 @@ int env_main(int argc ATTRIBUTE_UNUSED, char **argv)
puts(*ep);
}
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
/*
diff --git a/coreutils/printenv.c b/coreutils/printenv.c
index 31d76d712..2fc01f22f 100644
--- a/coreutils/printenv.c
+++ b/coreutils/printenv.c
@@ -29,5 +29,5 @@ int printenv_main(int argc ATTRIBUTE_UNUSED, char **argv)
}
}
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
diff --git a/coreutils/printf.c b/coreutils/printf.c
index a12f7cae7..7c7613152 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -266,7 +266,7 @@ static char **print_formatted(char *format, char **argv)
break;
case '\\':
if (*++f == 'c')
- exit(0);
+ exit(EXIT_SUCCESS);
bb_putchar(bb_process_escape_sequence((const char **)&f));
f--;
break;