Blame SOURCES/glibc-rh1505492-prototypes-scandir.patch

147e83
Introduce prototypes for scandir, scandirat.  This was implemented
147e83
upstream in:
147e83
147e83
commit d2ee815ad677bba720c4f0275c1d6065f5809e7a
147e83
Author: Roland McGrath <roland@hack.frob.com>
147e83
Date:   Wed May 13 12:34:11 2015 -0700
147e83
147e83
    Refactor scandir/scandirat to use common tail.
147e83
147e83
Not backported here because of its dependency on the fix for
147e83
swbz#17999.
147e83
147e83
diff --git a/dirent/scandir.c b/dirent/scandir.c
147e83
index 6dce54d64a3effa2..39c4c20e2b22804d 100644
147e83
--- a/dirent/scandir.c
147e83
+++ b/dirent/scandir.c
147e83
@@ -34,11 +34,9 @@
147e83
 
147e83
 
147e83
 int
147e83
-SCANDIR (dir, namelist, select, cmp)
147e83
-     const char *dir;
147e83
-     DIRENT_TYPE ***namelist;
147e83
-     int (*select) (const DIRENT_TYPE *);
147e83
-     int (*cmp) (const DIRENT_TYPE **, const DIRENT_TYPE **);
147e83
+SCANDIR (const char *dir, DIRENT_TYPE ***namelist,
147e83
+         int (*select) (const DIRENT_TYPE *),
147e83
+         int (*cmp) (const DIRENT_TYPE **, const DIRENT_TYPE **))
147e83
 {
147e83
   return SCANDIRAT (AT_FDCWD, dir, namelist, select, cmp);
147e83
 }
147e83
diff --git a/dirent/scandirat.c b/dirent/scandirat.c
147e83
index c2704baa88ef71d0..0200171a64139933 100644
147e83
--- a/dirent/scandirat.c
147e83
+++ b/dirent/scandirat.c
147e83
@@ -52,12 +52,9 @@ __scandir_cancel_handler (void *arg)
147e83
 
147e83
 
147e83
 int
147e83
-SCANDIRAT (dfd, dir, namelist, select, cmp)
147e83
-     int dfd;
147e83
-     const char *dir;
147e83
-     DIRENT_TYPE ***namelist;
147e83
-     int (*select) (const DIRENT_TYPE *);
147e83
-     int (*cmp) (const DIRENT_TYPE **, const DIRENT_TYPE **);
147e83
+SCANDIRAT (int dfd, const char *dir, DIRENT_TYPE ***namelist,
147e83
+	   int (*select) (const DIRENT_TYPE *),
147e83
+	   int (*cmp) (const DIRENT_TYPE **, const DIRENT_TYPE **))
147e83
 {
147e83
   DIR *dp = __opendirat (dfd, dir);
147e83
   DIRENT_TYPE **v = NULL;