summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-09-15 19:01:58 +0000
committerderaadt <deraadt@openbsd.org>2004-09-15 19:01:58 +0000
commit8d132eeb6f83f3df652bb76d097564d9d13e6f6a (patch)
tree8245888fdbbe657ccbcccc3deb638a293c624b82 /lib/libc
parentunused variables (diff)
downloadwireguard-openbsd-8d132eeb6f83f3df652bb76d097564d9d13e6f6a.tar.xz
wireguard-openbsd-8d132eeb6f83f3df652bb76d097564d9d13e6f6a.zip
signed vs unsigned char casting...
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/time/strptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c
index cc8209a9b8b..141fc202310 100644
--- a/lib/libc/time/strptime.c
+++ b/lib/libc/time/strptime.c
@@ -36,7 +36,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: strptime.c,v 1.9 2004/01/20 16:50:18 millert Exp $";
+static char rcsid[] = "$OpenBSD: strptime.c,v 1.10 2004/09/15 19:01:58 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/localedef.h>
@@ -81,7 +81,7 @@ _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize)
relyear = -1;
}
- bp = buf;
+ bp = (unsigned char *)buf;
while ((c = *fmt) != '\0') {
/* Clear `alternate' modifier prior to new conversion. */
alt_format = 0;