diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-10-30 22:28:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-10-30 22:28:02 +0000 |
commit | dfd528b4ea98155829613b77a0530212abf91b76 (patch) | |
tree | 75db588cfbae39203213ed8c68d869b565224e23 /libexec | |
parent | 0038181ac37de14b3094c9618f3a2cf818c18d0d (diff) |
rstat_timeval is not the same as timeval
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rpc.rstatd/rstat_proc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c index 891086f81bb..23c066c180f 100644 --- a/libexec/rpc.rstatd/rstat_proc.c +++ b/libexec/rpc.rstatd/rstat_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rstat_proc.c,v 1.17 2001/10/02 01:14:42 millert Exp $ */ +/* $OpenBSD: rstat_proc.c,v 1.18 2001/10/30 22:28:01 deraadt Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -31,7 +31,7 @@ #ifndef lint /*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";*/ -static char rcsid[] = "$OpenBSD: rstat_proc.c,v 1.17 2001/10/02 01:14:42 millert Exp $"; +static char rcsid[] = "$OpenBSD: rstat_proc.c,v 1.18 2001/10/30 22:28:01 deraadt Exp $"; #endif /* @@ -268,8 +268,9 @@ updatestat(int sig) stats_all.s1.if_collisions += ifdp->ifi_collisions; } freeifaddrs(ifaddrs); - 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); errno = save_errno; } |