summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2019-08-09 21:31:08 +0000
committercheloha <cheloha@cvs.openbsd.org>2019-08-09 21:31:08 +0000
commit7cacc04415fbf080742206ad835d8b3f2d0a4374 (patch)
tree2819fb1fabe0d1e8c1357a0e54138fa8d77c9134
parentf3cd69e685aca9d61ae3176dd23e55d44a4fbef4 (diff)
Fix pointless cast: (struct timezone *)0 -> NULL
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c
index 70e19e387f3..c1f1d42eeca 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.36 2019/06/28 13:32:53 deraadt Exp $ */
+/* $OpenBSD: rstat_proc.c,v 1.37 2019/08/09 21:31:07 cheloha Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -235,7 +235,7 @@ updatestat(void)
stats_all.s1.v_pswpout = 0;
stats_all.s1.v_intr = uvmexp.intrs;
stats_all.s2.v_swtch = uvmexp.swtch;
- gettimeofday(&tm, (struct timezone *) 0);
+ gettimeofday(&tm, NULL);
stats_all.s1.v_intr -= hz*(tm.tv_sec - btm.tv_sec) +
hz*(tm.tv_usec - btm.tv_usec)/1000000;
stats_all.s1.if_ipackets = 0;