]> pd.if.org Git - pdclib/commitdiff
Fixed compile warnings / errors.
authorsolar <unknown>
Tue, 9 May 2006 05:14:25 +0000 (05:14 +0000)
committersolar <unknown>
Tue, 9 May 2006 05:14:25 +0000 (05:14 +0000)
functions/_PDCLIB/print.c
functions/stdio/gets.c

index 28cd4bc0ae1b0a2c65e9db96995fba196767c703..b0c3341d8dfc6dbbc923293054da65e39bbb9053 100644 (file)
@@ -8,6 +8,11 @@
 
 #include <stdio.h>
 #include <stdint.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#include <stddef.h>
+
+extern char * _PDCLIB_Xdigits;
 
 /* Using an integer's bits as flags for both the conversion flags and length
    modifiers.
index 27575223581ef8fa1f8ce1b9e52740ec21cc0f5f..3529b0be466074c2550a3d68f3179c9156949d48 100644 (file)
@@ -7,13 +7,13 @@
 */
 
 #include <stdio.h>
-#include <stdint.h>
+#include <limits.h>
 
 #ifndef REGTEST
 
 char * gets( char * s )
 {
-    return fgets( s, SIZE_MAX, stdin );
+    return fgets( s, INT_MAX, stdin ); /* TODO: Replace with an unchecking call. */
 }
 
 #endif