summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2000-06-19 17:52:17 +0000
committerEric Andersen2000-06-19 17:52:17 +0000
commitb7362e36a80b639a64da3f662cbd0064038cad8a (patch)
treec17e459f53845aa0f79cdcba4bb8df114897a8e2
parent67e32304b1cc0ecddc045c2b0362cec3780d7fd7 (diff)
downloadbusybox-b7362e36a80b639a64da3f662cbd0064038cad8a.zip
busybox-b7362e36a80b639a64da3f662cbd0064038cad8a.tar.gz
printf now compiles cleanly under both libc5 and libc6.
-Erik
-rw-r--r--coreutils/printf.c3
-rw-r--r--printf.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c
index 4e9a940..f572897 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -57,7 +57,6 @@
#include <stdlib.h>
#include <fcntl.h>
#include <ctype.h>
-#include <libintl.h>
#ifndef S_IFMT
@@ -171,7 +170,7 @@ int printf_main(int argc, char **argv)
fprintf(stderr, "excess args ignored");
*/
- exit(exit_status);
+ return(exit_status);
}
/* Print the text in FORMAT, using ARGV (with ARGC elements) for
diff --git a/printf.c b/printf.c
index 4e9a940..f572897 100644
--- a/printf.c
+++ b/printf.c
@@ -57,7 +57,6 @@
#include <stdlib.h>
#include <fcntl.h>
#include <ctype.h>
-#include <libintl.h>
#ifndef S_IFMT
@@ -171,7 +170,7 @@ int printf_main(int argc, char **argv)
fprintf(stderr, "excess args ignored");
*/
- exit(exit_status);
+ return(exit_status);
}
/* Print the text in FORMAT, using ARGV (with ARGC elements) for