]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/stdio/tmpfile.c
Comment cleanups.
[pdclib] / platform / example / functions / stdio / tmpfile.c
index b2c099b0c580d6b6d8cf552ad23349e0aceb1f85..c3bbab05307859e52c971cb412146e7589e7ec71 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* tmpfile( void )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -91,11 +89,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 */