Commit dd6f85cd by Brendan Kehoe Committed by Jeff Law

tFile.cc (t4): Cast TMPFILE to char* in the call to unlink...

        * tFile.cc (t4): Cast TMPFILE to char* in the call to unlink, to
        solve warning problems with vxworks headers that leave const off
        their declarations.
Brought over from devo.

From-SVN: r17044
parent 6564e475
1997-10-31 Brendan Kehoe <brendan@lisa.cygnus.com>
* tFile.cc (t4): Cast TMPFILE to char* in the call to unlink, to
solve warning problems with vxworks headers that leave const off
their declarations.
Tue May 20 17:57:31 1997 Jeffrey A Law (law@cygnus.com) Tue May 20 17:57:31 1997 Jeffrey A Law (law@cygnus.com)
* tfformat.c (main): Only run half the testcases if SLOW_SIMULATOR * tfformat.c (main): Only run half the testcases if SLOW_SIMULATOR
......
...@@ -225,7 +225,7 @@ void t4() ...@@ -225,7 +225,7 @@ void t4()
tf.remove(); tf.remove();
#else #else
tf.close(); tf.close();
unlink(tempfile); unlink((char*)tempfile);
#endif #endif
assert(!tf.is_open()); assert(!tf.is_open());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment