printf now compiles cleanly under both libc5 and libc6.
authorEric Andersen <andersen@codepoet.org>
Mon, 19 Jun 2000 17:52:17 +0000 (17:52 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 19 Jun 2000 17:52:17 +0000 (17:52 -0000)
 -Erik

coreutils/printf.c
printf.c

index 4e9a940..f572897 100644 (file)
@@ -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
index 4e9a940..f572897 100644 (file)
--- 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