X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fvprintf.c;h=904f791e45e23aae0f0e38c9bb59a6e2d52da7c5;hp=a02c625670582f208e5d6b1a2092818bf4da06e5;hb=e72505f84aa8d8730e46d955a2722af361112e4f;hpb=07810dbd8f3e21618208b923e293715774c80ade diff --git a/functions/stdio/vprintf.c b/functions/stdio/vprintf.c index a02c625..904f791 100644 --- a/functions/stdio/vprintf.c +++ b/functions/stdio/vprintf.c @@ -23,7 +23,7 @@ int vprintf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ) #include #include <_PDCLIB_test.h> -static int testprintf( FILE * stream, size_t n, const char * format, ... ) +static int testprintf( FILE * stream, const char * format, ... ) { int i; va_list arg; @@ -37,10 +37,10 @@ static int testprintf( FILE * stream, size_t n, const char * format, ... ) int main( void ) { - FILE * buffer; - TESTCASE( ( buffer = freopen( testfile, "wb", stdout ) ) != NULL ); + FILE * target; + TESTCASE( ( target = freopen( testfile, "wb", stdout ) ) != NULL ); #include "printf_testcases.incl" - TESTCASE( fclose( buffer ) == 0 ); + TESTCASE( fclose( target ) == 0 ); #include "fprintf_reftest.incl" TESTCASE( remove( testfile ) == 0 ); return TEST_RESULTS;