From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111155 invoked by alias); 1 Feb 2019 09:39:47 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 111139 invoked by uid 10080); 1 Feb 2019 09:39:47 -0000 Date: Fri, 01 Feb 2019 09:39:00 -0000 Message-ID: <20190201093947.111138.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Remove __P and convert to ANSI prototypes. X-Act-Checkin: newlib-cygwin X-Git-Author: obrien X-Git-Refname: refs/heads/master X-Git-Oldrev: 0e7db0c356c0c47e34bd2cac1d3b83386540a7f7 X-Git-Newrev: d785551a46a786ed08db6b5efd2e1032d513f234 X-SW-Source: 2019-q1/txt/msg00019.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d785551a46a786ed08db6b5efd2e1032d513f234 commit d785551a46a786ed08db6b5efd2e1032d513f234 Author: obrien Date: Fri Feb 1 01:32:19 2002 +0000 Remove __P and convert to ANSI prototypes. * Fix SCM ID's. Diff: --- newlib/libc/posix/scandir.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/newlib/libc/posix/scandir.c b/newlib/libc/posix/scandir.c index 97a16cf..95be977 100644 --- a/newlib/libc/posix/scandir.c +++ b/newlib/libc/posix/scandir.c @@ -33,6 +33,7 @@ #include __SCCSID("@(#)scandir.c 8.3 (Berkeley) 1/2/94"); +__FBSDID("$FreeBSD$"); /* * Scan the directory dirname calling select to make a list of selected @@ -64,15 +65,11 @@ __SCCSID("@(#)scandir.c 8.3 (Berkeley) 1/2/94"); (offsetof (struct dirent, d_name) + ((strlen((dp)->d_name)+1 + 3) &~ 3)) #endif -#ifndef __P -#define __P(args) () -#endif int -scandir (const char *dirname, - struct dirent ***namelist, - int (*select) __P((const struct dirent *)), - int (*dcomp) __P((const struct dirent **, const struct dirent **))) +scandir(const char *dirname, struct dirent ***namelist, + int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **, + const struct dirent **)) { register struct dirent *d, *p, **names; register size_t nitems;