summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-11-02 17:02:37 +0000
committermmcc <mmcc@openbsd.org>2015-11-02 17:02:37 +0000
commit98802acee466dac179c9eb67e0d6b346ad43db74 (patch)
tree482204e8a2dedc8e01b816738e35237090abb4a2 /lib/libc
parentintr_barrier() stub. (diff)
downloadwireguard-openbsd-98802acee466dac179c9eb67e0d6b346ad43db74.tar.xz
wireguard-openbsd-98802acee466dac179c9eb67e0d6b346ad43db74.zip
(struct timezone *)0 -> NULL
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/times.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/times.c b/lib/libc/gen/times.c
index 942f459388c..582ef9736b9 100644
--- a/lib/libc/gen/times.c
+++ b/lib/libc/gen/times.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: times.c,v 1.6 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: times.c,v 1.7 2015/11/02 17:02:37 mmcc Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -52,7 +52,7 @@ times(struct tms *tp)
return ((clock_t)-1);
tp->tms_cutime = CONVTCK(ru.ru_utime);
tp->tms_cstime = CONVTCK(ru.ru_stime);
- if (gettimeofday(&t, (struct timezone *)0))
+ if (gettimeofday(&t, NULL))
return ((clock_t)-1);
return ((clock_t)(CONVTCK(t)));
}