Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2008 00:19:20 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184458 - head/lib/libc/stdtime
Message-ID:  <200810300019.m9U0JKCr036690@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810300019.m9U0JKCr036690>