Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2006 19:39:04 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/kldxref kldxref.c
Message-ID:  <200607291939.k6TJd4NJ037384@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607291939.k6TJd4NJ037384>