diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-06-08 00:22:23 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-06-08 00:22:23 +0000 |
commit | 60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca (patch) | |
tree | 29d9258b64874c6c9838757a9c67ef62a6a0868c /sysdeps/mach | |
parent | 2e09a79ada1f6d92809a037d41895e3d9302ad59 (diff) | |
download | glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.zip glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.gz glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.bz2 |
Use (void) in no-arguments function definitions.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/getpagesize.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/getsysstats.c | 8 | ||||
-rw-r--r-- | sysdeps/mach/hurd/dl-sysdep.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getclktck.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getdtsz.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getegid.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/geteuid.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getgid.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/gethostid.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getlogin.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getpid.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getppid.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getuid.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/sync.c | 2 |
14 files changed, 17 insertions, 17 deletions
diff --git a/sysdeps/mach/getpagesize.c b/sysdeps/mach/getpagesize.c index fe8fec8..8bf49c9 100644 --- a/sysdeps/mach/getpagesize.c +++ b/sysdeps/mach/getpagesize.c @@ -20,7 +20,7 @@ /* Return the system page size. */ int -__getpagesize () +__getpagesize (void) { return __vm_page_size; } diff --git a/sysdeps/mach/getsysstats.c b/sysdeps/mach/getsysstats.c index cc28f57..0755113 100644 --- a/sysdeps/mach/getsysstats.c +++ b/sysdeps/mach/getsysstats.c @@ -24,7 +24,7 @@ /* Return the number of processors configured on the system. */ int -__get_nprocs_conf () +__get_nprocs_conf (void) { struct host_basic_info hbi; kern_return_t err; @@ -43,7 +43,7 @@ weak_alias (__get_nprocs_conf, get_nprocs_conf) /* Return the number of processors currently available on the system. */ int -__get_nprocs () +__get_nprocs (void) { struct host_basic_info hbi; kern_return_t err; @@ -62,7 +62,7 @@ weak_alias (__get_nprocs, get_nprocs) /* Return the number of physical pages on the system. */ long int -__get_phys_pages () +__get_phys_pages (void) { struct host_basic_info hbi; kern_return_t err; @@ -81,7 +81,7 @@ weak_alias (__get_phys_pages, get_phys_pages) /* Return the number of available physical pages */ long int -__get_avphys_pages () +__get_avphys_pages (void) { vm_statistics_data_t vs; kern_return_t err; diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 94b6d09..d85c22a 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -553,7 +553,7 @@ __access (const char *file, int type) } pid_t weak_function -__getpid () +__getpid (void) { pid_t pid, ppid; int orphaned; diff --git a/sysdeps/mach/hurd/getclktck.c b/sysdeps/mach/hurd/getclktck.c index 69be2cc..2eea58d 100644 --- a/sysdeps/mach/hurd/getclktck.c +++ b/sysdeps/mach/hurd/getclktck.c @@ -21,7 +21,7 @@ /* Return frequency of `times'. Since Mach reports CPU times in microseconds, we always use 1 million. */ int -__getclktck () +__getclktck (void) { return 1000000; } diff --git a/sysdeps/mach/hurd/getdtsz.c b/sysdeps/mach/hurd/getdtsz.c index 16a0b78..db5104c 100644 --- a/sysdeps/mach/hurd/getdtsz.c +++ b/sysdeps/mach/hurd/getdtsz.c @@ -24,7 +24,7 @@ /* Return the maximum number of file descriptors the current process could possibly have (until it raises the resource limit). */ int -__getdtablesize () +__getdtablesize (void) { rlim_t limit; diff --git a/sysdeps/mach/hurd/getegid.c b/sysdeps/mach/hurd/getegid.c index 3ab46ed..dac104d 100644 --- a/sysdeps/mach/hurd/getegid.c +++ b/sysdeps/mach/hurd/getegid.c @@ -22,7 +22,7 @@ /* Get the effective group ID of the calling process. */ gid_t -__getegid () +__getegid (void) { error_t err; gid_t egid; diff --git a/sysdeps/mach/hurd/geteuid.c b/sysdeps/mach/hurd/geteuid.c index e30c028..32e59c2 100644 --- a/sysdeps/mach/hurd/geteuid.c +++ b/sysdeps/mach/hurd/geteuid.c @@ -22,7 +22,7 @@ /* Get the effective user ID of the calling process. */ uid_t -__geteuid () +__geteuid (void) { error_t err; uid_t euid; diff --git a/sysdeps/mach/hurd/getgid.c b/sysdeps/mach/hurd/getgid.c index 9168994..3c6397d 100644 --- a/sysdeps/mach/hurd/getgid.c +++ b/sysdeps/mach/hurd/getgid.c @@ -22,7 +22,7 @@ /* Get the real group ID of the calling process. */ gid_t -__getgid () +__getgid (void) { error_t err; gid_t gid; diff --git a/sysdeps/mach/hurd/gethostid.c b/sysdeps/mach/hurd/gethostid.c index d1d0c62..4fc3016 100644 --- a/sysdeps/mach/hurd/gethostid.c +++ b/sysdeps/mach/hurd/gethostid.c @@ -21,7 +21,7 @@ /* Return the current machine's Internet number. */ long int -gethostid () +gethostid (void) { /* The hostid is just the contents of the file /etc/hostid, kept as text of hexadecimal digits. */ diff --git a/sysdeps/mach/hurd/getlogin.c b/sysdeps/mach/hurd/getlogin.c index d88c043..ce638af 100644 --- a/sysdeps/mach/hurd/getlogin.c +++ b/sysdeps/mach/hurd/getlogin.c @@ -23,7 +23,7 @@ /* Return the login name of the user, or NULL if it can't be determined. The returned pointer, if not NULL, is good only until the next call. */ char * -getlogin () +getlogin (void) { static char login[1024]; /* XXX */ error_t err; diff --git a/sysdeps/mach/hurd/getpid.c b/sysdeps/mach/hurd/getpid.c index e0a8865..0c595f7 100644 --- a/sysdeps/mach/hurd/getpid.c +++ b/sysdeps/mach/hurd/getpid.c @@ -21,7 +21,7 @@ /* Get the process ID of the calling process. */ pid_t -__getpid () +__getpid (void) { /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */ return _hurd_pid; diff --git a/sysdeps/mach/hurd/getppid.c b/sysdeps/mach/hurd/getppid.c index c622ee9..9e35645 100644 --- a/sysdeps/mach/hurd/getppid.c +++ b/sysdeps/mach/hurd/getppid.c @@ -23,7 +23,7 @@ /* Get the parent process ID of the calling process. */ pid_t -__getppid () +__getppid (void) { /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */ return _hurd_ppid; diff --git a/sysdeps/mach/hurd/getuid.c b/sysdeps/mach/hurd/getuid.c index fa9e2f8..6d9a707 100644 --- a/sysdeps/mach/hurd/getuid.c +++ b/sysdeps/mach/hurd/getuid.c @@ -22,7 +22,7 @@ /* Get the real user ID of the calling process. */ uid_t -__getuid () +__getuid (void) { error_t err; uid_t uid; diff --git a/sysdeps/mach/hurd/sync.c b/sysdeps/mach/hurd/sync.c index f4ddf70..775182e 100644 --- a/sysdeps/mach/hurd/sync.c +++ b/sysdeps/mach/hurd/sync.c @@ -21,7 +21,7 @@ /* Make all changes done to all files actually appear on disk. */ void -sync () +sync (void) { /* This is not actually synchronous; we don't wait. */ error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1)); |