]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/remove.c
Fixed warnings in test driver.
[pdclib] / platform / example / functions / _PDCLIB / remove.c
index 609ddbe4b49d70b3a722e29fe6838fb8b73c1cb5..184a1f2dcf181209a0e4f80b1f224d12e8db2ae4 100644 (file)
@@ -42,9 +42,7 @@ int _PDCLIB_remove( const char * filename )
 
 int main( void )
 {
-    char filename[ L_tmpnam + 6 ] = "touch ";
-    tmpnam( filename + 6 );
-    /* create file */
+    char filename[] = "touch testfile";
     system( filename );
     /* file is actually readable */
     TESTCASE( fopen( filename + 6, "r" ) != NULL );