diff options
author | marcel <marcel@FreeBSD.org> | 2006-07-29 19:39:03 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-07-29 19:39:03 +0000 |
commit | 152e76d1d1dcc649357b52f30943345b06aa162c (patch) | |
tree | 9babf20513a7235dd154426c6e16a1eb813f1678 /games | |
parent | e07cc0214a55c667871ff33ceb54311ec000283e (diff) | |
download | FreeBSD-src-152e76d1d1dcc649357b52f30943345b06aa162c.zip FreeBSD-src-152e76d1d1dcc649357b52f30943345b06aa162c.tar.gz |
Change maketempfile() to return a FILE* so as to eliminate the fopen()
that immediately follows the only call to it. maketempfile() uses
mkstemp(), so the temporary file has already been opened and using
fopen() again just opens the file twice. This also fixes the invalid
mode used on the fopen().
While here, assign NULL to fxref after fclose() because we test for
fxref being !NULL to determine if we have the (temporary) hints file
open.
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions