summaryrefslogtreecommitdiffstats
path: root/lib/libc/time/wcsftime.c
diff options
context:
space:
mode:
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;