]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/stdio/tmpfile.c
Fixed prototype warnings.
[pdclib] / platform / example / functions / stdio / tmpfile.c
index b2c099b0c580d6b6d8cf552ad23349e0aceb1f85..29750d46b2a7757cf785c10fa9756dfc98503622 100644 (file)
@@ -91,11 +91,13 @@ struct _PDCLIB_file_t * tmpfile( void )
 #include <_PDCLIB_test.h>
 #include <string.h>
 
-int main()
+int main( void )
 {
     FILE * fh;
+#ifndef REGTEST
     char filename[ L_tmpnam ];
     FILE * fhtest;
+#endif
     TESTCASE( ( fh = tmpfile() ) != NULL );
     TESTCASE( fputc( 'x', fh ) == 'x' );
     /* Checking that file is actually there */