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/time/strptime.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/time/strptime.c')
-rw-r--r-- | lib/libc/time/strptime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c index 8c337a2ce1e..fe78b476b98 100644 --- a/lib/libc/time/strptime.c +++ b/lib/libc/time/strptime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strptime.c,v 1.20 2015/04/07 01:49:11 millert Exp $ */ +/* $OpenBSD: strptime.c,v 1.21 2015/09/12 14:35:40 guenther Exp $ */ /* $NetBSD: strptime.c,v 1.12 1998/01/20 21:39:40 mycroft Exp $ */ /*- * Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc. @@ -83,6 +83,7 @@ strptime(const char *buf, const char *fmt, struct tm *tm) { return(_strptime(buf, fmt, tm, 1)); } +DEF_WEAK(strptime); static char * _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) |