]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/rename.c
Fixed warnings in test driver.
[pdclib] / platform / example / functions / _PDCLIB / rename.c
index ab1a75d6a51ebd6edf6d4a91e730b6fff033975e..849f872946476beae89d24f890e20f34f1a4721f 100644 (file)
@@ -38,10 +38,8 @@ int _PDCLIB_rename( const char * old, const char * new )
 
 int main( void )
 {
-    char filename1[ L_tmpnam + 6 ] = "touch ";
-    char filename2[ L_tmpnam ];
-    tmpnam( filename1 + 6 );
-    tmpnam( filename2);
+    char filename1[] = "touch testfile1";
+    char filename2[] = "testfile2";
     /* check that neither file exists */
     TESTCASE( fopen( filename1 + 6, "r" ) == NULL );
     TESTCASE( fopen( filename2, "r" ) == NULL );