printf now compiles cleanly under both libc5 and libc6.
-Erik
This commit is contained in:
parent
67e32304b1
commit
b7362e36a8
@ -57,7 +57,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <libintl.h>
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef S_IFMT
|
#ifndef S_IFMT
|
||||||
@ -171,7 +170,7 @@ int printf_main(int argc, char **argv)
|
|||||||
fprintf(stderr, "excess args ignored");
|
fprintf(stderr, "excess args ignored");
|
||||||
*/
|
*/
|
||||||
|
|
||||||
exit(exit_status);
|
return(exit_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print the text in FORMAT, using ARGV (with ARGC elements) for
|
/* Print the text in FORMAT, using ARGV (with ARGC elements) for
|
||||||
|
3
printf.c
3
printf.c
@ -57,7 +57,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <libintl.h>
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef S_IFMT
|
#ifndef S_IFMT
|
||||||
@ -171,7 +170,7 @@ int printf_main(int argc, char **argv)
|
|||||||
fprintf(stderr, "excess args ignored");
|
fprintf(stderr, "excess args ignored");
|
||||||
*/
|
*/
|
||||||
|
|
||||||
exit(exit_status);
|
return(exit_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print the text in FORMAT, using ARGV (with ARGC elements) for
|
/* Print the text in FORMAT, using ARGV (with ARGC elements) for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user