summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2008-10-31 14:12:17 +0000
committermillert <millert@openbsd.org>2008-10-31 14:12:17 +0000
commit0cd7f77f319437ac43995816729f579266978224 (patch)
tree9eea99991632fc20fd25acce979c6f93c7c0810a /lib/libc
parentadd mdoclint, a perl script for checking man pages; (diff)
downloadwireguard-openbsd-0cd7f77f319437ac43995816729f579266978224.tar.xz
wireguard-openbsd-0cd7f77f319437ac43995816729f579266978224.zip
Pass a pointer to warn2 so the warn2 == IN_ALL would not be an
always-false condition. From FreeBSD (delphij).
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/time/strftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/strftime.c b/lib/libc/time/strftime.c
index 961773e0c59..f32626af6be 100644
--- a/lib/libc/time/strftime.c
+++ b/lib/libc/time/strftime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strftime.c,v 1.18 2007/12/29 22:26:51 millert Exp $ */
+/* $OpenBSD: strftime.c,v 1.19 2008/10/31 14:12:17 millert Exp $ */
#include "private.h"
/*
@@ -227,7 +227,7 @@ label:
{
int warn2 = IN_SOME;
- pt = _fmt(Locale->c_fmt, t, pt, ptlim, warnp);
+ pt = _fmt(Locale->c_fmt, t, pt, ptlim, &warn2);
if (warn2 == IN_ALL)
warn2 = IN_THIS;
if (warn2 > *warnp)