diff options
author | 2015-09-12 14:35:40 +0000 | |
---|---|---|
committer | 2015-09-12 14:35:40 +0000 | |
commit | d17652bce78af081b2a21cb7df22b93b80c698ce (patch) | |
tree | 973e0f4ae9233ae72a10ab17b529c82d2080d178 /lib/libc/gen/time.c | |
parent | Uncopy and unpaste dtls1_send_certificate_request() - removes another 80 (diff) | |
download | wireguard-openbsd-d17652bce78af081b2a21cb7df22b93b80c698ce.tar.xz wireguard-openbsd-d17652bce78af081b2a21cb7df22b93b80c698ce.zip |
Wrap <time.h> so that internal calls go direct and symbols not in C99 are weak
Add prototypes to localtime.c for offtime(), time2posix(), posix2time() to
reduce noise with -Wmissing-prototypes
Eliminate unnecessary #includes
Diffstat (limited to 'lib/libc/gen/time.c')
-rw-r--r-- | lib/libc/gen/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/time.c b/lib/libc/gen/time.c index 3a57500d433..bb63f42384d 100644 --- a/lib/libc/gen/time.c +++ b/lib/libc/gen/time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: time.c,v 1.5 2005/08/08 08:05:34 espie Exp $ */ +/* $OpenBSD: time.c,v 1.6 2015/09/12 14:35:40 guenther Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -28,8 +28,8 @@ * SUCH DAMAGE. */ -#include <sys/types.h> #include <sys/time.h> +#include <time.h> time_t time(time_t *t) @@ -42,3 +42,4 @@ time(time_t *t) *t = (time_t)tt.tv_sec; return (tt.tv_sec); } +DEF_STRONG(time); |