|
|
147e83 |
commit a72ddc1424d5bfcab14d90f1149cbb9b492f0120
|
|
|
147e83 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
147e83 |
Date: Tue Oct 20 11:51:03 2015 +0000
|
|
|
147e83 |
|
|
|
147e83 |
Convert 24 more function definitions to prototype style (array parameters).
|
|
|
147e83 |
|
|
|
147e83 |
This automatically-generated patch converts 24 function definitions in
|
|
|
147e83 |
glibc from old-style K&R to prototype-style. Following my other
|
|
|
147e83 |
recent such patches, this one deals with the case of functions with
|
|
|
147e83 |
array parameters.
|
|
|
147e83 |
|
|
|
147e83 |
Tested for x86_64 and x86 (testsuite, and that installed stripped
|
|
|
147e83 |
shared libraries are unchanged by the patch).
|
|
|
147e83 |
|
|
|
147e83 |
* crypt/cert.c (main): Convert to prototype-style function
|
|
|
147e83 |
definition.
|
|
|
147e83 |
* io/pipe.c (__pipe): Likewise.
|
|
|
147e83 |
* io/pipe2.c (__pipe2): Likewise.
|
|
|
147e83 |
* misc/futimesat.c (futimesat): Likewise.
|
|
|
147e83 |
* misc/utimes.c (__utimes): Likewise.
|
|
|
147e83 |
* posix/execve.c (__execve): Likewise.
|
|
|
147e83 |
* posix/execvp.c (execvp): Likewise.
|
|
|
147e83 |
* posix/execvpe.c (__execvpe): Likewise.
|
|
|
147e83 |
* posix/fexecve.c (fexecve): Likewise.
|
|
|
147e83 |
* socket/socketpair.c (socketpair): Likewise.
|
|
|
147e83 |
* stdlib/drand48-iter.c (__drand48_iterate): Likewise.
|
|
|
147e83 |
* stdlib/erand48.c (erand48): Likewise.
|
|
|
147e83 |
* stdlib/erand48_r.c (__erand48_r): Likewise.
|
|
|
147e83 |
* stdlib/jrand48.c (jrand48): Likewise.
|
|
|
147e83 |
* stdlib/jrand48_r.c (__jrand48_r): Likewise.
|
|
|
147e83 |
* stdlib/lcong48.c (lcong48): Likewise.
|
|
|
147e83 |
* stdlib/lcong48_r.c (__lcong48_r): Likewise.
|
|
|
147e83 |
* stdlib/nrand48.c (nrand48): Likewise.
|
|
|
147e83 |
* stdlib/nrand48_r.c (__nrand48_r): Likewise.
|
|
|
147e83 |
* stdlib/seed48.c (seed48): Likewise.
|
|
|
147e83 |
* stdlib/seed48_r.c (__seed48_r): Likewise.
|
|
|
147e83 |
* sysdeps/mach/hurd/execve.c (__execve): Likewise.
|
|
|
147e83 |
* sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
|
|
|
147e83 |
* sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/crypt/cert.c b/crypt/cert.c
|
|
|
147e83 |
index d651108860f0052a..80029e9078c1cdc0 100644
|
|
|
147e83 |
--- a/crypt/cert.c
|
|
|
147e83 |
+++ b/crypt/cert.c
|
|
|
147e83 |
@@ -30,9 +30,7 @@ good_bye (void)
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
-main(argc, argv)
|
|
|
147e83 |
- int argc;
|
|
|
147e83 |
- char *argv[];
|
|
|
147e83 |
+main (int argc, char *argv[])
|
|
|
147e83 |
{
|
|
|
147e83 |
char key[64],plain[64],cipher[64],answer[64];
|
|
|
147e83 |
int i;
|
|
|
147e83 |
diff --git a/io/pipe.c b/io/pipe.c
|
|
|
147e83 |
index 1f1c03f0d5b44fe6..2223ac169c2b9d95 100644
|
|
|
147e83 |
--- a/io/pipe.c
|
|
|
147e83 |
+++ b/io/pipe.c
|
|
|
147e83 |
@@ -24,8 +24,7 @@
|
|
|
147e83 |
bytes written on PIPEDES[1] can be read from PIPEDES[0].
|
|
|
147e83 |
Returns 0 if successful, -1 if not. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-__pipe (__pipedes)
|
|
|
147e83 |
- int __pipedes[2];
|
|
|
147e83 |
+__pipe (int __pipedes[2])
|
|
|
147e83 |
{
|
|
|
147e83 |
if (__pipedes == NULL)
|
|
|
147e83 |
{
|
|
|
147e83 |
diff --git a/io/pipe2.c b/io/pipe2.c
|
|
|
147e83 |
index 2478fc3c6128c981..9bfc8291330f899b 100644
|
|
|
147e83 |
--- a/io/pipe2.c
|
|
|
147e83 |
+++ b/io/pipe2.c
|
|
|
147e83 |
@@ -24,9 +24,7 @@
|
|
|
147e83 |
PIPEDES[1] can be read from PIPEDES[0]. Apply FLAGS to the new
|
|
|
147e83 |
file descriptors. Returns 0 if successful, -1 if not. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-__pipe2 (pipedes, flags)
|
|
|
147e83 |
- int pipedes[2];
|
|
|
147e83 |
- int flags;
|
|
|
147e83 |
+__pipe2 (int pipedes[2], int flags)
|
|
|
147e83 |
{
|
|
|
147e83 |
if (pipedes == NULL)
|
|
|
147e83 |
{
|
|
|
147e83 |
diff --git a/misc/futimesat.c b/misc/futimesat.c
|
|
|
147e83 |
index b33939e0a1cf4b88..b428852aeb9a2590 100644
|
|
|
147e83 |
--- a/misc/futimesat.c
|
|
|
147e83 |
+++ b/misc/futimesat.c
|
|
|
147e83 |
@@ -24,10 +24,7 @@
|
|
|
147e83 |
/* Change the access time of FILE relative to FD to TVP[0] and
|
|
|
147e83 |
the modification time of FILE to TVP[1]. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-futimesat (fd, file, tvp)
|
|
|
147e83 |
- int fd;
|
|
|
147e83 |
- const char *file;
|
|
|
147e83 |
- const struct timeval tvp[2];
|
|
|
147e83 |
+futimesat (int fd, const char *file, const struct timeval tvp[2])
|
|
|
147e83 |
{
|
|
|
147e83 |
if (fd < 0
|
|
|
147e83 |
&& (file == NULL
|
|
|
147e83 |
diff --git a/misc/utimes.c b/misc/utimes.c
|
|
|
147e83 |
index 5cdfe6ca5e594e42..9c94f6be646bd955 100644
|
|
|
147e83 |
--- a/misc/utimes.c
|
|
|
147e83 |
+++ b/misc/utimes.c
|
|
|
147e83 |
@@ -22,9 +22,7 @@
|
|
|
147e83 |
/* Change the access time of FILE to TVP[0] and
|
|
|
147e83 |
the modification time of FILE to TVP[1]. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-__utimes (file, tvp)
|
|
|
147e83 |
- const char *file;
|
|
|
147e83 |
- const struct timeval tvp[2];
|
|
|
147e83 |
+__utimes (const char *file, const struct timeval tvp[2])
|
|
|
147e83 |
{
|
|
|
147e83 |
if (file == NULL)
|
|
|
147e83 |
{
|
|
|
147e83 |
diff --git a/posix/execve.c b/posix/execve.c
|
|
|
147e83 |
index 893cec2b19a39527..27b063fe7d31a59e 100644
|
|
|
147e83 |
--- a/posix/execve.c
|
|
|
147e83 |
+++ b/posix/execve.c
|
|
|
147e83 |
@@ -23,10 +23,7 @@
|
|
|
147e83 |
/* Replace the current process, executing PATH with arguments ARGV and
|
|
|
147e83 |
environment ENVP. ARGV and ENVP are terminated by NULL pointers. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-__execve (path, argv, envp)
|
|
|
147e83 |
- const char *path;
|
|
|
147e83 |
- char *const argv[];
|
|
|
147e83 |
- char *const envp[];
|
|
|
147e83 |
+__execve (const char *path, char *const argv[], char *const envp[])
|
|
|
147e83 |
{
|
|
|
147e83 |
if (path == NULL || argv == NULL || envp == NULL)
|
|
|
147e83 |
{
|
|
|
147e83 |
diff --git a/posix/execvp.c b/posix/execvp.c
|
|
|
147e83 |
index 5f2e155cd55db43e..9140b93d27896d26 100644
|
|
|
147e83 |
--- a/posix/execvp.c
|
|
|
147e83 |
+++ b/posix/execvp.c
|
|
|
147e83 |
@@ -22,9 +22,7 @@
|
|
|
147e83 |
/* Execute FILE, searching in the `PATH' environment variable if it contains
|
|
|
147e83 |
no slashes, with arguments ARGV and environment from `environ'. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-execvp (file, argv)
|
|
|
147e83 |
- const char *file;
|
|
|
147e83 |
- char *const argv[];
|
|
|
147e83 |
+execvp (const char *file, char *const argv[])
|
|
|
147e83 |
{
|
|
|
147e83 |
return __execvpe (file, argv, __environ);
|
|
|
147e83 |
}
|
|
|
147e83 |
diff --git a/posix/execvpe.c b/posix/execvpe.c
|
|
|
147e83 |
index 48f777a9d57928fb..b607235c8bc27026 100644
|
|
|
147e83 |
--- a/posix/execvpe.c
|
|
|
147e83 |
+++ b/posix/execvpe.c
|
|
|
147e83 |
@@ -46,10 +46,7 @@ scripts_argv (const char *file, char *const argv[], int argc, char **new_argv)
|
|
|
147e83 |
/* Execute FILE, searching in the `PATH' environment variable if it contains
|
|
|
147e83 |
no slashes, with arguments ARGV and environment from ENVP. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-__execvpe (file, argv, envp)
|
|
|
147e83 |
- const char *file;
|
|
|
147e83 |
- char *const argv[];
|
|
|
147e83 |
- char *const envp[];
|
|
|
147e83 |
+__execvpe (const char *file, char *const argv[], char *const envp[])
|
|
|
147e83 |
{
|
|
|
147e83 |
if (*file == '\0')
|
|
|
147e83 |
{
|
|
|
147e83 |
diff --git a/posix/fexecve.c b/posix/fexecve.c
|
|
|
147e83 |
index 6a22a194e34d0789..1ebbbc6fe942e716 100644
|
|
|
147e83 |
--- a/posix/fexecve.c
|
|
|
147e83 |
+++ b/posix/fexecve.c
|
|
|
147e83 |
@@ -23,10 +23,7 @@
|
|
|
147e83 |
/* Execute the file FD refers to, overlaying the running program image.
|
|
|
147e83 |
ARGV and ENVP are passed to the new program, as for `execve'. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-fexecve (fd, argv, envp)
|
|
|
147e83 |
- int fd;
|
|
|
147e83 |
- char *const argv[];
|
|
|
147e83 |
- char *const envp[];
|
|
|
147e83 |
+fexecve (int fd, char *const argv[], char *const envp[])
|
|
|
147e83 |
{
|
|
|
147e83 |
if (fd < 0 || argv == NULL || envp == NULL)
|
|
|
147e83 |
{
|
|
|
147e83 |
diff --git a/socket/socketpair.c b/socket/socketpair.c
|
|
|
147e83 |
index 031674831f88cd61..4da27fb3b616d26f 100644
|
|
|
147e83 |
--- a/socket/socketpair.c
|
|
|
147e83 |
+++ b/socket/socketpair.c
|
|
|
147e83 |
@@ -23,11 +23,7 @@
|
|
|
147e83 |
descriptors for them in FDS[0] and FDS[1]. If PROTOCOL is zero,
|
|
|
147e83 |
one will be chosen automatically. Returns 0 on success, -1 for errors. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-socketpair (domain, type, protocol, fds)
|
|
|
147e83 |
- int domain;
|
|
|
147e83 |
- int type;
|
|
|
147e83 |
- int protocol;
|
|
|
147e83 |
- int fds[2];
|
|
|
147e83 |
+socketpair (int domain, int type, int protocol, int fds[2])
|
|
|
147e83 |
{
|
|
|
147e83 |
__set_errno (ENOSYS);
|
|
|
147e83 |
return -1;
|
|
|
147e83 |
diff --git a/stdlib/drand48-iter.c b/stdlib/drand48-iter.c
|
|
|
147e83 |
index 9270aab068170970..0cb988028f25a405 100644
|
|
|
147e83 |
--- a/stdlib/drand48-iter.c
|
|
|
147e83 |
+++ b/stdlib/drand48-iter.c
|
|
|
147e83 |
@@ -27,9 +27,7 @@ struct drand48_data __libc_drand48_data;
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
-__drand48_iterate (xsubi, buffer)
|
|
|
147e83 |
- unsigned short int xsubi[3];
|
|
|
147e83 |
- struct drand48_data *buffer;
|
|
|
147e83 |
+__drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer)
|
|
|
147e83 |
{
|
|
|
147e83 |
uint64_t X;
|
|
|
147e83 |
uint64_t result;
|
|
|
147e83 |
diff --git a/stdlib/erand48.c b/stdlib/erand48.c
|
|
|
147e83 |
index d2cf5af967b6663e..ff128ab72bb43e05 100644
|
|
|
147e83 |
--- a/stdlib/erand48.c
|
|
|
147e83 |
+++ b/stdlib/erand48.c
|
|
|
147e83 |
@@ -20,8 +20,7 @@
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
double
|
|
|
147e83 |
-erand48 (xsubi)
|
|
|
147e83 |
- unsigned short int xsubi[3];
|
|
|
147e83 |
+erand48 (unsigned short int xsubi[3])
|
|
|
147e83 |
{
|
|
|
147e83 |
double result;
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/stdlib/erand48_r.c b/stdlib/erand48_r.c
|
|
|
147e83 |
index cdd02c9c963c89ed..9cf062da0ad1b89c 100644
|
|
|
147e83 |
--- a/stdlib/erand48_r.c
|
|
|
147e83 |
+++ b/stdlib/erand48_r.c
|
|
|
147e83 |
@@ -22,10 +22,8 @@
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
-__erand48_r (xsubi, buffer, result)
|
|
|
147e83 |
- unsigned short int xsubi[3];
|
|
|
147e83 |
- struct drand48_data *buffer;
|
|
|
147e83 |
- double *result;
|
|
|
147e83 |
+__erand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
|
|
|
147e83 |
+ double *result)
|
|
|
147e83 |
{
|
|
|
147e83 |
union ieee754_double temp;
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/stdlib/jrand48.c b/stdlib/jrand48.c
|
|
|
147e83 |
index af6bf6809155963c..a6d2f3ab0a1e0c9d 100644
|
|
|
147e83 |
--- a/stdlib/jrand48.c
|
|
|
147e83 |
+++ b/stdlib/jrand48.c
|
|
|
147e83 |
@@ -20,8 +20,7 @@
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
long int
|
|
|
147e83 |
-jrand48 (xsubi)
|
|
|
147e83 |
- unsigned short int xsubi[3];
|
|
|
147e83 |
+jrand48 (unsigned short int xsubi[3])
|
|
|
147e83 |
{
|
|
|
147e83 |
long int result;
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/stdlib/jrand48_r.c b/stdlib/jrand48_r.c
|
|
|
147e83 |
index 78c57dbaa285f968..b0170e11d30fcf5e 100644
|
|
|
147e83 |
--- a/stdlib/jrand48_r.c
|
|
|
147e83 |
+++ b/stdlib/jrand48_r.c
|
|
|
147e83 |
@@ -19,10 +19,8 @@
|
|
|
147e83 |
#include <stdlib.h>
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
-__jrand48_r (xsubi, buffer, result)
|
|
|
147e83 |
- unsigned short int xsubi[3];
|
|
|
147e83 |
- struct drand48_data *buffer;
|
|
|
147e83 |
- long int *result;
|
|
|
147e83 |
+__jrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
|
|
|
147e83 |
+ long int *result)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* Compute next state. */
|
|
|
147e83 |
if (__drand48_iterate (xsubi, buffer) < 0)
|
|
|
147e83 |
diff --git a/stdlib/lcong48.c b/stdlib/lcong48.c
|
|
|
147e83 |
index 31f403e01c10f104..b7943605041e99c0 100644
|
|
|
147e83 |
--- a/stdlib/lcong48.c
|
|
|
147e83 |
+++ b/stdlib/lcong48.c
|
|
|
147e83 |
@@ -20,8 +20,7 @@
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
void
|
|
|
147e83 |
-lcong48 (param)
|
|
|
147e83 |
- unsigned short int param[7];
|
|
|
147e83 |
+lcong48 (unsigned short int param[7])
|
|
|
147e83 |
{
|
|
|
147e83 |
(void) __lcong48_r (param, &__libc_drand48_data);
|
|
|
147e83 |
}
|
|
|
147e83 |
diff --git a/stdlib/lcong48_r.c b/stdlib/lcong48_r.c
|
|
|
147e83 |
index 03ffcd7eb03742de..063baa3c8753a6f9 100644
|
|
|
147e83 |
--- a/stdlib/lcong48_r.c
|
|
|
147e83 |
+++ b/stdlib/lcong48_r.c
|
|
|
147e83 |
@@ -22,9 +22,7 @@
|
|
|
147e83 |
#include <limits.h>
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
-__lcong48_r (param, buffer)
|
|
|
147e83 |
- unsigned short int param[7];
|
|
|
147e83 |
- struct drand48_data *buffer;
|
|
|
147e83 |
+__lcong48_r (unsigned short int param[7], struct drand48_data *buffer)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* Store the given values. */
|
|
|
147e83 |
memcpy (buffer->__x, ¶m[0], sizeof (buffer->__x));
|
|
|
147e83 |
diff --git a/stdlib/nrand48.c b/stdlib/nrand48.c
|
|
|
147e83 |
index 927e7d25534292a0..9f9f2f550faf3d88 100644
|
|
|
147e83 |
--- a/stdlib/nrand48.c
|
|
|
147e83 |
+++ b/stdlib/nrand48.c
|
|
|
147e83 |
@@ -20,8 +20,7 @@
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
long int
|
|
|
147e83 |
-nrand48 (xsubi)
|
|
|
147e83 |
- unsigned short int xsubi[3];
|
|
|
147e83 |
+nrand48 (unsigned short int xsubi[3])
|
|
|
147e83 |
{
|
|
|
147e83 |
long int result;
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/stdlib/nrand48_r.c b/stdlib/nrand48_r.c
|
|
|
147e83 |
index 15a9b0c20589198a..f57e34cdcc44ff9f 100644
|
|
|
147e83 |
--- a/stdlib/nrand48_r.c
|
|
|
147e83 |
+++ b/stdlib/nrand48_r.c
|
|
|
147e83 |
@@ -19,10 +19,8 @@
|
|
|
147e83 |
#include <stdlib.h>
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
-__nrand48_r (xsubi, buffer, result)
|
|
|
147e83 |
- unsigned short int xsubi[3];
|
|
|
147e83 |
- struct drand48_data *buffer;
|
|
|
147e83 |
- long int *result;
|
|
|
147e83 |
+__nrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
|
|
|
147e83 |
+ long int *result)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* Compute next state. */
|
|
|
147e83 |
if (__drand48_iterate (xsubi, buffer) < 0)
|
|
|
147e83 |
diff --git a/stdlib/seed48.c b/stdlib/seed48.c
|
|
|
147e83 |
index 9808213eaeff876d..941c870977062bb3 100644
|
|
|
147e83 |
--- a/stdlib/seed48.c
|
|
|
147e83 |
+++ b/stdlib/seed48.c
|
|
|
147e83 |
@@ -20,8 +20,7 @@
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
unsigned short int *
|
|
|
147e83 |
-seed48 (seed16v)
|
|
|
147e83 |
- unsigned short int seed16v[3];
|
|
|
147e83 |
+seed48 (unsigned short int seed16v[3])
|
|
|
147e83 |
{
|
|
|
147e83 |
(void) __seed48_r (seed16v, &__libc_drand48_data);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/stdlib/seed48_r.c b/stdlib/seed48_r.c
|
|
|
147e83 |
index b821d2349d8bb0c1..c8d9262123200c1b 100644
|
|
|
147e83 |
--- a/stdlib/seed48_r.c
|
|
|
147e83 |
+++ b/stdlib/seed48_r.c
|
|
|
147e83 |
@@ -21,9 +21,7 @@
|
|
|
147e83 |
#include <limits.h>
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
-__seed48_r (seed16v, buffer)
|
|
|
147e83 |
- unsigned short int seed16v[3];
|
|
|
147e83 |
- struct drand48_data *buffer;
|
|
|
147e83 |
+__seed48_r (unsigned short int seed16v[3], struct drand48_data *buffer)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* Save old value at a private place to be used as return value. */
|
|
|
147e83 |
memcpy (buffer->__old_x, buffer->__x, sizeof (buffer->__x));
|
|
|
147e83 |
diff --git a/sysdeps/mach/hurd/execve.c b/sysdeps/mach/hurd/execve.c
|
|
|
147e83 |
index 716cea7bf8fd0eba..72e509b7870085d0 100644
|
|
|
147e83 |
--- a/sysdeps/mach/hurd/execve.c
|
|
|
147e83 |
+++ b/sysdeps/mach/hurd/execve.c
|
|
|
147e83 |
@@ -22,10 +22,7 @@
|
|
|
147e83 |
/* Replace the current process, executing FILE_NAME with arguments ARGV and
|
|
|
147e83 |
environment ENVP. ARGV and ENVP are terminated by NULL pointers. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-__execve (file_name, argv, envp)
|
|
|
147e83 |
- const char *file_name;
|
|
|
147e83 |
- char *const argv[];
|
|
|
147e83 |
- char *const envp[];
|
|
|
147e83 |
+__execve (const char *file_name, char *const argv[], char *const envp[])
|
|
|
147e83 |
{
|
|
|
147e83 |
error_t err;
|
|
|
147e83 |
file_t file = __file_name_lookup (file_name, O_EXEC, 0);
|
|
|
147e83 |
diff --git a/sysdeps/mach/hurd/utimes.c b/sysdeps/mach/hurd/utimes.c
|
|
|
147e83 |
index ae3d375b2dfb3c72..d915fae5bfee9e6e 100644
|
|
|
147e83 |
--- a/sysdeps/mach/hurd/utimes.c
|
|
|
147e83 |
+++ b/sysdeps/mach/hurd/utimes.c
|
|
|
147e83 |
@@ -24,9 +24,7 @@
|
|
|
147e83 |
/* Change the access time of FILE to TVP[0] and
|
|
|
147e83 |
the modification time of FILE to TVP[1]. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-__utimes (file, tvp)
|
|
|
147e83 |
- const char *file;
|
|
|
147e83 |
- const struct timeval tvp[2];
|
|
|
147e83 |
+__utimes (const char *file, const struct timeval tvp[2])
|
|
|
147e83 |
{
|
|
|
147e83 |
union tv
|
|
|
147e83 |
{
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/fexecve.c b/sysdeps/unix/sysv/linux/fexecve.c
|
|
|
147e83 |
index 032e680742507e70..df341cde0a3ea21b 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/fexecve.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/fexecve.c
|
|
|
147e83 |
@@ -25,10 +25,7 @@
|
|
|
147e83 |
/* Execute the file FD refers to, overlaying the running program image.
|
|
|
147e83 |
ARGV and ENVP are passed to the new program, as for `execve'. */
|
|
|
147e83 |
int
|
|
|
147e83 |
-fexecve (fd, argv, envp)
|
|
|
147e83 |
- int fd;
|
|
|
147e83 |
- char *const argv[];
|
|
|
147e83 |
- char *const envp[];
|
|
|
147e83 |
+fexecve (int fd, char *const argv[], char *const envp[])
|
|
|
147e83 |
{
|
|
|
147e83 |
if (fd < 0 || argv == NULL || envp == NULL)
|
|
|
147e83 |
{
|