From owner-svn-src-head@FreeBSD.ORG Tue Feb 3 20:39:34 2009 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 37F1A1065677 for ; Tue, 3 Feb 2009 20:39:34 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 722A48FC29 for ; Tue, 3 Feb 2009 20:39:32 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 03 Feb 2009 20:39:31 -0000 Received: from p54A3EB73.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.235.115] by mail.gmx.net (mp020) with SMTP; 03 Feb 2009 21:39:31 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX1+Q9Vtcfp+QQef9XNrNniRuyzJSg+PJC4SUIYTdd0 zFWtvTwpm3M/mn Message-ID: <4988AB83.2050203@gmx.de> Date: Tue, 03 Feb 2009 21:39:31 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Warner Losh References: <200902032025.n13KPaCV041012@svn.freebsd.org> In-Reply-To: <200902032025.n13KPaCV041012@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r188098 - head/lib/libc/string 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, 03 Feb 2009 20:39:34 -0000 Warner Losh schrieb: > Author: imp > Date: Tue Feb 3 20:25:36 2009 > New Revision: 188098 > URL: http://svn.freebsd.org/changeset/base/188098 > > Log: > Fix the functions to match prototypes. The K&R definitions differ > from the ANSI-C prototype due to the 'int promotion' rule. > > Modified: > head/lib/libc/string/memchr.c > head/lib/libc/string/strmode.c > head/lib/libc/string/wmemset.c [...] > Modified: head/lib/libc/string/strmode.c > ============================================================================== > --- head/lib/libc/string/strmode.c Tue Feb 3 20:01:51 2009 (r188097) > +++ head/lib/libc/string/strmode.c Tue Feb 3 20:25:36 2009 (r188098) > @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); > #include > > void > -strmode(mode_t mode, char *p) > +strmode(/* mode_t */ int mode, char *p) > { > /* print type */ > switch (mode & S_IFMT) { The manpage states that the first parameter of strmode() is a mode_t. What's wrong - the implementation (both in header and definition) or the documentation?