summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/time.c
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-29 03:58:55 +0000
committermmcc <mmcc@openbsd.org>2015-10-29 03:58:55 +0000
commit780e07573caa32980ce36e7b4db1db606070fae9 (patch)
treec71f215b7522c42b5fde7224b477aa9b6410e067 /lib/libc/gen/time.c
parentfix newlines on an error message (diff)
downloadwireguard-openbsd-780e07573caa32980ce36e7b4db1db606070fae9.tar.xz
wireguard-openbsd-780e07573caa32980ce36e7b4db1db606070fae9.zip
(struct timezone *)0 -> NULL, while I'm here.
Diffstat (limited to 'lib/libc/gen/time.c')
-rw-r--r--lib/libc/gen/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/time.c b/lib/libc/gen/time.c
index bb63f42384d..6fcf1cde209 100644
--- a/lib/libc/gen/time.c
+++ b/lib/libc/gen/time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.c,v 1.6 2015/09/12 14:35:40 guenther Exp $ */
+/* $OpenBSD: time.c,v 1.7 2015/10/29 03:58:55 mmcc Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -36,7 +36,7 @@ time(time_t *t)
{
struct timeval tt;
- if (gettimeofday(&tt, (struct timezone *)0) < 0)
+ if (gettimeofday(&tt, NULL) < 0)
return (-1);
if (t)
*t = (time_t)tt.tv_sec;