diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-04-23 01:41:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-04-23 01:41:51 +0000 |
commit | 5cfa5ef6f358bb979b76f8927899b920074f698d (patch) | |
tree | 2f3282e6bc0780a09b3e368a7e16263a8f78345b /coreutils/printenv.c | |
parent | de9f1f757af7e15881156b610431cd00c262f768 (diff) | |
download | busybox-w32-5cfa5ef6f358bb979b76f8927899b920074f698d.tar.gz busybox-w32-5cfa5ef6f358bb979b76f8927899b920074f698d.tar.bz2 busybox-w32-5cfa5ef6f358bb979b76f8927899b920074f698d.zip |
use bb_fflush_stdout_and_exit instead of exit
Diffstat (limited to 'coreutils/printenv.c')
-rw-r--r-- | coreutils/printenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/printenv.c b/coreutils/printenv.c index 10f9dd22a..753f7cb4d 100644 --- a/coreutils/printenv.c +++ b/coreutils/printenv.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include <string.h> | 24 | #include <string.h> |
25 | #include <stdlib.h> | 25 | #include <stdlib.h> |
26 | #include "busybox.h" | ||
26 | 27 | ||
27 | int printenv_main(int argc, char **argv) | 28 | int printenv_main(int argc, char **argv) |
28 | { | 29 | { |
@@ -48,5 +49,5 @@ int printenv_main(int argc, char **argv) | |||
48 | } | 49 | } |
49 | } | 50 | } |
50 | 51 | ||
51 | exit(EXIT_SUCCESS); | 52 | bb_fflush_stdout_and_exit(); |
52 | } | 53 | } |