Source-Changes-HG archive

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

[src/trunk]: src/libexec/rpc.rstatd Dont call gettimeofday on a rpc timeval.



details:   https://anonhg.NetBSD.org/src/rev/2eab1e770f0a
branches:  trunk
changeset: 544036:2eab1e770f0a
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sun Mar 09 10:33:04 2003 +0000

description:
Dont call gettimeofday on a rpc timeval.
This fails on sparc64 because rpc timeval elements are int
and timeval elements are long.

diffstat:

 libexec/rpc.rstatd/rstat_proc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r bf7a04d3ee8b -r 2eab1e770f0a libexec/rpc.rstatd/rstat_proc.c
--- a/libexec/rpc.rstatd/rstat_proc.c   Sun Mar 09 08:10:43 2003 +0000
+++ b/libexec/rpc.rstatd/rstat_proc.c   Sun Mar 09 10:33:04 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rstat_proc.c,v 1.40 2002/11/02 01:59:24 mrg Exp $      */
+/*     $NetBSD: rstat_proc.c,v 1.41 2003/03/09 10:33:04 hannken Exp $  */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro";
 static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: rstat_proc.c,v 1.40 2002/11/02 01:59:24 mrg Exp $");
+__RCSID("$NetBSD: rstat_proc.c,v 1.41 2003/03/09 10:33:04 hannken Exp $");
 #endif
 #endif
 
@@ -301,8 +301,8 @@
                stats_all.s3.if_collisions += ifnet.if_data.ifi_collisions;
                off = (long)ifnet.if_list.tqe_next;
        }
-       gettimeofday((struct timeval *)&stats_all.s3.curtime,
-               (struct timezone *) 0);
+       stats_all.s3.curtime.tv_sec = tm.tv_sec;
+       stats_all.s3.curtime.tv_usec = tm.tv_usec;
        alarm(1);
 }
 



Home | Main Index | Thread Index | Old Index