svn commit: r184458 - head/lib/libc/stdtime
Xin LI
delphij at FreeBSD.org
Wed Oct 29 17:19:20 PDT 2008
Author: delphij
Date: Thu Oct 30 00:19:19 2008
New Revision: 184458
URL: http://svn.freebsd.org/changeset/base/184458
Log:
Pass a pointer to warn2 so the warn2 == IN_ALL would not be an
always-false condition.
Modified:
head/lib/libc/stdtime/strftime.c
Modified: head/lib/libc/stdtime/strftime.c
==============================================================================
--- head/lib/libc/stdtime/strftime.c Wed Oct 29 21:43:14 2008 (r184457)
+++ head/lib/libc/stdtime/strftime.c Thu Oct 30 00:19:19 2008 (r184458)
@@ -177,7 +177,7 @@ label:
{
int warn2 = IN_SOME;
- pt = _fmt(tptr->c_fmt, t, pt, ptlim, warnp);
+ pt = _fmt(tptr->c_fmt, t, pt, ptlim, &warn2);
if (warn2 == IN_ALL)
warn2 = IN_THIS;
if (warn2 > *warnp)
More information about the svn-src-head
mailing list