Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpuffs set time_t compat where necessary



details:   https://anonhg.NetBSD.org/src/rev/5229ea4041aa
branches:  trunk
changeset: 756102:5229ea4041aa
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jul 06 18:01:14 2010 +0000

description:
set time_t compat where necessary

diffstat:

 lib/libpuffs/puffs.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 0e6cfbef93ce -r 5229ea4041aa lib/libpuffs/puffs.c
--- a/lib/libpuffs/puffs.c      Tue Jul 06 17:56:14 2010 +0000
+++ b/lib/libpuffs/puffs.c      Tue Jul 06 18:01:14 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs.c,v 1.111 2010/07/06 13:27:16 pooka Exp $        */
+/*     $NetBSD: puffs.c,v 1.112 2010/07/06 18:01:14 pooka Exp $        */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: puffs.c,v 1.111 2010/07/06 13:27:16 pooka Exp $");
+__RCSID("$NetBSD: puffs.c,v 1.112 2010/07/06 18:01:14 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/param.h>
@@ -652,6 +652,10 @@
        pargs->pa_root_vsize = 0;
        pargs->pa_root_rdev = 0;
        pargs->pa_maxmsglen = 0;
+       if (sizeof(time_t) == 4)
+               pargs->pa_time32 = 1;
+       else
+               pargs->pa_time32 = 0;
 
        pu->pu_flags = pflags;
        pu->pu_ops = *pops;



Home | Main Index | Thread Index | Old Index