diff options
author | 2015-11-02 17:02:37 +0000 | |
---|---|---|
committer | 2015-11-02 17:02:37 +0000 | |
commit | 98802acee466dac179c9eb67e0d6b346ad43db74 (patch) | |
tree | 482204e8a2dedc8e01b816738e35237090abb4a2 /lib/libc | |
parent | intr_barrier() stub. (diff) | |
download | wireguard-openbsd-98802acee466dac179c9eb67e0d6b346ad43db74.tar.xz wireguard-openbsd-98802acee466dac179c9eb67e0d6b346ad43db74.zip |
(struct timezone *)0 -> NULL
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/times.c | 4 |
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))); } |