From e6bac87d0eaab116878a04874bc5b6a3496cb938 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 27 Apr 2011 16:06:33 -0400 Subject: correct variadic prototypes for execl* family the old versions worked, but conflicted with programs which declared their own prototypes and generated warnings with some versions of gcc. --- include/unistd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/unistd.h b/include/unistd.h index 05180de0..a64d99b7 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -81,10 +81,10 @@ int pause(void); pid_t fork(void); int execve(const char *, char *const [], char *const []); int execv(const char *, char *const []); -int execle(const char *, ...); -int execl(const char *, ...); +int execle(const char *, const char *, ...); +int execl(const char *, const char *, ...); int execvp(const char *, char *const []); -int execlp(const char *, ...); +int execlp(const char *, const char *, ...); int fexecve(int, char *const [], char *const []); void _exit(int); -- cgit v1.2.1