summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/time.c
diff options
context:
space:
mode:
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 3bbd0d733d1..7e24d60f6cb 100644
--- a/lib/libc/gen/time.c
+++ b/lib/libc/gen/time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.c,v 1.8 2019/06/28 13:32:41 deraadt Exp $ */
+/* $OpenBSD: time.c,v 1.9 2020/07/06 13:33:06 pirofti 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, NULL) == -1)
+ if (WRAP(gettimeofday)(&tt, NULL) == -1)
return (-1);
if (t)
*t = (time_t)tt.tv_sec;