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

147e83
Introduce prototype-style function definitions to rtkaio (which is not
147e83
upstream).
147e83
147e83
diff --git a/rtkaio/sysdeps/unix/sysv/linux/kaio_cancel.c b/rtkaio/sysdeps/unix/sysv/linux/kaio_cancel.c
147e83
index 018ccb6941d49e26..a531f7d5047860b8 100644
147e83
--- a/rtkaio/sysdeps/unix/sysv/linux/kaio_cancel.c
147e83
+++ b/rtkaio/sysdeps/unix/sysv/linux/kaio_cancel.c
147e83
@@ -42,9 +42,7 @@
147e83
 #include <errno.h>
147e83
 
147e83
 int
147e83
-aio_cancel (fildes, aiocbp)
147e83
-     int fildes;
147e83
-     struct aiocb *aiocbp;
147e83
+aio_cancel (int fildes, struct aiocb *aiocbp)
147e83
 {
147e83
   struct requestlist *req = NULL;
147e83
   int result = AIO_ALLDONE;
147e83
diff --git a/rtkaio/sysdeps/unix/sysv/linux/kaio_error.c b/rtkaio/sysdeps/unix/sysv/linux/kaio_error.c
147e83
index 23859c363a42bfc2..bc582cd3395b622e 100644
147e83
--- a/rtkaio/sysdeps/unix/sysv/linux/kaio_error.c
147e83
+++ b/rtkaio/sysdeps/unix/sysv/linux/kaio_error.c
147e83
@@ -37,8 +37,7 @@
147e83
 #include <errno.h>
147e83
 
147e83
 int
147e83
-aio_error (aiocbp)
147e83
-     const struct aiocb *aiocbp;
147e83
+aio_error (const struct aiocb *aiocbp)
147e83
 {
147e83
   int ret = aiocbp->__error_code;
147e83
 
147e83
diff --git a/rtkaio/sysdeps/unix/sysv/linux/kaio_return.c b/rtkaio/sysdeps/unix/sysv/linux/kaio_return.c
147e83
index 1d9f6cbabb8436e1..9d052d47b6f6b4b5 100644
147e83
--- a/rtkaio/sysdeps/unix/sysv/linux/kaio_return.c
147e83
+++ b/rtkaio/sysdeps/unix/sysv/linux/kaio_return.c
147e83
@@ -38,8 +38,7 @@
147e83
 #include <errno.h>
147e83
 
147e83
 ssize_t
147e83
-aio_return (aiocbp)
147e83
-     struct aiocb *aiocbp;
147e83
+aio_return (struct aiocb *aiocbp)
147e83
 {
147e83
   if (aiocbp->__error_code == EINPROGRESS)
147e83
     __aio_read_one_event ();
147e83
diff --git a/rtkaio/sysdeps/unix/sysv/linux/kaio_suspend.c b/rtkaio/sysdeps/unix/sysv/linux/kaio_suspend.c
147e83
index 6c7b59c6fb0783b5..011393ea4c311d79 100644
147e83
--- a/rtkaio/sysdeps/unix/sysv/linux/kaio_suspend.c
147e83
+++ b/rtkaio/sysdeps/unix/sysv/linux/kaio_suspend.c
147e83
@@ -102,10 +102,8 @@ cleanup (void *arg)
147e83
 
147e83
 
147e83
 int
147e83
-aio_suspend (list, nent, timeout)
147e83
-     const struct aiocb *const list[];
147e83
-     int nent;
147e83
-     const struct timespec *timeout;
147e83
+aio_suspend (const struct aiocb *const list[], int nent,
147e83
+	     const struct timespec *timeout)
147e83
 {
147e83
   if (__builtin_expect (nent < 0, 0))
147e83
     {