From 9f91688d2e009a4c73162da5693bb8f717497586 Mon Sep 17 00:00:00 2001 From: solar Date: Tue, 9 May 2006 05:14:25 +0000 Subject: [PATCH] Fixed compile warnings / errors. --- functions/_PDCLIB/print.c | 5 +++++ functions/stdio/gets.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index 28cd4bc..b0c3341 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -8,6 +8,11 @@ #include #include +#include +#include +#include + +extern char * _PDCLIB_Xdigits; /* Using an integer's bits as flags for both the conversion flags and length modifiers. diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c index 2757522..3529b0b 100644 --- a/functions/stdio/gets.c +++ b/functions/stdio/gets.c @@ -7,13 +7,13 @@ */ #include -#include +#include #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 -- 2.40.0