Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 2009 12:45:37 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 160694 for review
Message-ID:  <200904161245.n3GCjb1d093380@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=160694

Change 160694 by rwatson@rwatson_cinnamon on 2009/04/16 12:45:36

	Don't use BSD-specific st_ctimespec.tv_sec when portable
	st_ctime will do.  Fixes the Linux build for bsm_control.c.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 (text+ko) ====

@@ -27,7 +27,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#32 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 $
  */
 
 #include <config/config.h>
@@ -300,8 +300,8 @@
 		 */
 		if (fstat(fileno(fp), &sbuf) < 0)
 			goto closefp;
-		if (lastctime != sbuf.st_ctimespec.tv_sec) {
-			lastctime = sbuf.st_ctimespec.tv_sec;
+		if (lastctime != sbuf.st_ctime) {
+			lastctime = sbuf.st_ctime;
 closefp:
 			fclose(fp);
 			fp = NULL;



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