From owner-svn-src-head@FreeBSD.ORG Thu Oct 30 00:19:20 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A20D1065670; Thu, 30 Oct 2008 00:19:20 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 284F28FC2F; Thu, 30 Oct 2008 00:19:20 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9U0JKa1036691; Thu, 30 Oct 2008 00:19:20 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9U0JKCr036690; Thu, 30 Oct 2008 00:19:20 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <200810300019.m9U0JKCr036690@svn.freebsd.org> From: Xin LI Date: Thu, 30 Oct 2008 00:19:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184458 - head/lib/libc/stdtime X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 00:19:20 -0000 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)