]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change maketempfile() to return a FILE* so as to eliminate the fopen()
authormarcel <marcel@FreeBSD.org>
Sat, 29 Jul 2006 19:39:03 +0000 (19:39 +0000)
committermarcel <marcel@FreeBSD.org>
Sat, 29 Jul 2006 19:39:03 +0000 (19:39 +0000)
commit152e76d1d1dcc649357b52f30943345b06aa162c
tree9babf20513a7235dd154426c6e16a1eb813f1678
parente07cc0214a55c667871ff33ceb54311ec000283e
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.
usr.sbin/kldxref/kldxref.c