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/strftime.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/strftime.c')
-rw-r--r-- | lib/libc/time/strftime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/time/strftime.c b/lib/libc/time/strftime.c index 4c117f184c9..84c4c18e38f 100644 --- a/lib/libc/time/strftime.c +++ b/lib/libc/time/strftime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strftime.c,v 1.26 2015/02/16 17:11:54 tedu Exp $ */ +/* $OpenBSD: strftime.c,v 1.27 2015/09/12 14:35:40 guenther Exp $ */ /* ** Copyright (c) 1989, 1993 ** The Regents of the University of California. All rights reserved. @@ -136,6 +136,7 @@ strftime(char *s, size_t maxsize, const char *format, const struct tm *t) *p = '\0'; return p - s; } +DEF_STRONG(strftime); static char * _fmt(const char *format, const struct tm *t, char *pt, const char *ptlim, int *warnp) |