From 60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 8 Jun 2013 00:22:23 +0000 Subject: Use (void) in no-arguments function definitions. --- posix/fork.c | 2 +- posix/getegid.c | 2 +- posix/geteuid.c | 2 +- posix/getgid.c | 2 +- posix/getpid.c | 2 +- posix/getppid.c | 2 +- posix/getuid.c | 2 +- posix/pause.c | 2 +- posix/setpgrp.c | 2 +- posix/setsid.c | 2 +- posix/test-vfork.c | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) (limited to 'posix') diff --git a/posix/fork.c b/posix/fork.c index 01b5279..4946a40 100644 --- a/posix/fork.c +++ b/posix/fork.c @@ -23,7 +23,7 @@ Return -1 for errors, 0 to the new process, and the process ID of the new process to the old process. */ int -__fork () +__fork (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/getegid.c b/posix/getegid.c index e8f09f5..c14cc60 100644 --- a/posix/getegid.c +++ b/posix/getegid.c @@ -20,7 +20,7 @@ /* Get the effective group ID of the calling process. */ __gid_t -__getegid () +__getegid (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/geteuid.c b/posix/geteuid.c index 566db40..c7af13f 100644 --- a/posix/geteuid.c +++ b/posix/geteuid.c @@ -21,7 +21,7 @@ /* Get the effective user ID of the calling process. */ __uid_t -__geteuid () +__geteuid (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/getgid.c b/posix/getgid.c index 14f9dc6..719f8fb 100644 --- a/posix/getgid.c +++ b/posix/getgid.c @@ -21,7 +21,7 @@ /* Get the real group ID of the calling process. */ gid_t -__getgid () +__getgid (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/getpid.c b/posix/getpid.c index 4a64f57..11a1865 100644 --- a/posix/getpid.c +++ b/posix/getpid.c @@ -20,7 +20,7 @@ /* Get the process ID of the calling process. */ int -__getpid () +__getpid (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/getppid.c b/posix/getppid.c index e6dfcbb..c320324 100644 --- a/posix/getppid.c +++ b/posix/getppid.c @@ -21,7 +21,7 @@ /* Get the parent process ID of the calling process. */ int -__getppid () +__getppid (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/getuid.c b/posix/getuid.c index ba81a80..19ad296 100644 --- a/posix/getuid.c +++ b/posix/getuid.c @@ -21,7 +21,7 @@ /* Get the real user ID of the calling process. */ uid_t -__getuid () +__getuid (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/pause.c b/posix/pause.c index 81b583b..19eebe7 100644 --- a/posix/pause.c +++ b/posix/pause.c @@ -23,7 +23,7 @@ This is supposed to always return -1 and set errno to EINTR, but rules were meant to be broken. */ int -pause () +pause (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/setpgrp.c b/posix/setpgrp.c index 18fce1d..f31950b 100644 --- a/posix/setpgrp.c +++ b/posix/setpgrp.c @@ -18,7 +18,7 @@ #include int -setpgrp () +setpgrp (void) { return __setpgid (0, 0); } diff --git a/posix/setsid.c b/posix/setsid.c index d442d57..d3b99b2 100644 --- a/posix/setsid.c +++ b/posix/setsid.c @@ -23,7 +23,7 @@ The process group IDs of the session and the calling process are set to the process ID of the calling process, which is returned. */ int -__setsid () +__setsid (void) { __set_errno (ENOSYS); return -1; diff --git a/posix/test-vfork.c b/posix/test-vfork.c index c4904e3..6dfb7d4 100644 --- a/posix/test-vfork.c +++ b/posix/test-vfork.c @@ -37,6 +37,6 @@ main (void) } void -noop () +noop (void) { } -- cgit v1.1