From owner-svn-src-head@FreeBSD.ORG Tue Jan 4 16:08:49 2011 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 51C981065670; Tue, 4 Jan 2011 16:08:49 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2AAC28FC18; Tue, 4 Jan 2011 16:08:49 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id CB1E046B58; Tue, 4 Jan 2011 11:08:48 -0500 (EST) Date: Tue, 4 Jan 2011 16:08:48 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Ed Maste In-Reply-To: <201101041302.p04D2qkE036718@svn.freebsd.org> Message-ID: References: <201101041302.p04D2qkE036718@svn.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r216953 - head/lib/libugidfw 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: Tue, 04 Jan 2011 16:08:49 -0000 On Tue, 4 Jan 2011, Ed Maste wrote: > Author: emaste > Date: Tue Jan 4 13:02:52 2011 > New Revision: 216953 > URL: http://svn.freebsd.org/changeset/base/216953 > > Log: > Quiet clang warnings by using string literal format strings. Thanks! Robert > > Modified: > head/lib/libugidfw/ugidfw.c > > Modified: head/lib/libugidfw/ugidfw.c > ============================================================================== > --- head/lib/libugidfw/ugidfw.c Tue Jan 4 10:59:38 2011 (r216952) > +++ head/lib/libugidfw/ugidfw.c Tue Jan 4 13:02:52 2011 (r216953) > @@ -1134,7 +1134,7 @@ bsde_get_rule_count(size_t buflen, char > len = sizeof(rule_count); > error = sysctlbyname(MIB ".rule_count", &rule_count, &len, NULL, 0); > if (error) { > - len = snprintf(errstr, buflen, strerror(errno)); > + len = snprintf(errstr, buflen, "%s", strerror(errno)); > return (-1); > } > if (len != sizeof(rule_count)) { > @@ -1156,7 +1156,7 @@ bsde_get_rule_slots(size_t buflen, char > len = sizeof(rule_slots); > error = sysctlbyname(MIB ".rule_slots", &rule_slots, &len, NULL, 0); > if (error) { > - len = snprintf(errstr, buflen, strerror(errno)); > + len = snprintf(errstr, buflen, "%s", strerror(errno)); > return (-1); > } > if (len != sizeof(rule_slots)) { >