summaryrefslogtreecommitdiffstats
path: root/lib/libc/time/wcsftime.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-02-09 14:00:03 +0000
committertedu <tedu@openbsd.org>2015-02-09 14:00:03 +0000
commit4b1ac4ad1a04bae432d84c578bc4ccc81212b01f (patch)
tree52423d37061bd6ab010cd2cc765329985346e474 /lib/libc/time/wcsftime.c
parentsync (diff)
downloadwireguard-openbsd-4b1ac4ad1a04bae432d84c578bc4ccc81212b01f.tar.xz
wireguard-openbsd-4b1ac4ad1a04bae432d84c578bc4ccc81212b01f.zip
the one true type of time_t is a signed integer
Diffstat (limited to 'lib/libc/time/wcsftime.c')
-rw-r--r--lib/libc/time/wcsftime.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/libc/time/wcsftime.c b/lib/libc/time/wcsftime.c
index 2affa52a01e..db905a85395 100644
--- a/lib/libc/time/wcsftime.c
+++ b/lib/libc/time/wcsftime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wcsftime.c,v 1.4 2015/02/09 13:32:51 tedu Exp $ */
+/* $OpenBSD: wcsftime.c,v 1.5 2015/02/09 14:00:03 tedu Exp $ */
/*
** Based on the UCB version with the ID appearing below.
** This is ANSIish only when "multibyte character == plain character".
@@ -292,14 +292,9 @@ label:
tm = *t;
mkt = mktime(&tm);
- if (TYPE_SIGNED(time_t))
- (void) swprintf(buf,
- sizeof buf/sizeof buf[0],
- L"%ld", (long) mkt);
- else
- (void) swprintf(buf,
- sizeof buf/sizeof buf[0],
- L"%lu", (unsigned long) mkt);
+ (void) swprintf(buf,
+ sizeof buf/sizeof buf[0],
+ L"%ld", (long) mkt);
pt = _add(buf, pt, ptlim);
}
continue;