public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Remove __P and convert to ANSI prototypes.
@ 2019-02-01  9:39 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2019-02-01  9:39 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d785551a46a786ed08db6b5efd2e1032d513f234

commit d785551a46a786ed08db6b5efd2e1032d513f234
Author: obrien <obrien@FreeBSD.org>
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 <sys/cdefs.h>
 __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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-01  9:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-01  9:39 [newlib-cygwin] Remove __P and convert to ANSI prototypes Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).