cvs commit: src/usr.sbin/kldxref kldxref.c

Marcel Moolenaar marcel at FreeBSD.org
Sat Jul 29 19:39:04 UTC 2006


marcel      2006-07-29 19:39:04 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/kldxref     kldxref.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.12      +7 -6      src/usr.sbin/kldxref/kldxref.c


More information about the cvs-all mailing list