diff options
Diffstat (limited to 'libc/sysdeps/mach/hurd')
-rw-r--r-- | libc/sysdeps/mach/hurd/check_fds.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/dl-sysdep.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getclktck.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getcwd.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getdtsz.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getegid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/geteuid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getgid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/gethostid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getlogin.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getpid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getppid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getsockname.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/getuid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/net/if_ppp.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/recvfrom.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/mach/hurd/sync.c | 2 |
17 files changed, 18 insertions, 18 deletions
diff --git a/libc/sysdeps/mach/hurd/check_fds.c b/libc/sysdeps/mach/hurd/check_fds.c index 9b335c214..979fcb7de 100644 --- a/libc/sysdeps/mach/hurd/check_fds.c +++ b/libc/sysdeps/mach/hurd/check_fds.c @@ -61,7 +61,7 @@ check_one_fd (int fd, int mode) return; } } - + /* We cannot even give an error message here since it would run into the same problems. */ while (1) @@ -100,7 +100,7 @@ __libc_check_standard_fds (void) /* We don't check the standard file descriptors here. They will be checked when we initialize the file descriptor table, as part of the _hurd_fd_subinit hook. - + This function is only present to make sure that this module gets linked in when part of the static libc. */ } diff --git a/libc/sysdeps/mach/hurd/dl-sysdep.c b/libc/sysdeps/mach/hurd/dl-sysdep.c index 94b6d094a..d85c22a03 100644 --- a/libc/sysdeps/mach/hurd/dl-sysdep.c +++ b/libc/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/libc/sysdeps/mach/hurd/getclktck.c b/libc/sysdeps/mach/hurd/getclktck.c index 69be2cc35..2eea58df6 100644 --- a/libc/sysdeps/mach/hurd/getclktck.c +++ b/libc/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/libc/sysdeps/mach/hurd/getcwd.c b/libc/sysdeps/mach/hurd/getcwd.c index 43e0a2ccc..10822d2a7 100644 --- a/libc/sysdeps/mach/hurd/getcwd.c +++ b/libc/sysdeps/mach/hurd/getcwd.c @@ -45,7 +45,7 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir, mach_port_t rootid, thisid, rootdevid, thisdevid; ino64_t rootino, thisino; char *file_name; - register char *file_namep; + char *file_namep; file_t parent; char *dirbuf = NULL; unsigned int dirbufsize = 0; diff --git a/libc/sysdeps/mach/hurd/getdtsz.c b/libc/sysdeps/mach/hurd/getdtsz.c index 16a0b7811..db5104c6b 100644 --- a/libc/sysdeps/mach/hurd/getdtsz.c +++ b/libc/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/libc/sysdeps/mach/hurd/getegid.c b/libc/sysdeps/mach/hurd/getegid.c index 3ab46ed20..dac104d00 100644 --- a/libc/sysdeps/mach/hurd/getegid.c +++ b/libc/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/libc/sysdeps/mach/hurd/geteuid.c b/libc/sysdeps/mach/hurd/geteuid.c index e30c028b1..32e59c2b1 100644 --- a/libc/sysdeps/mach/hurd/geteuid.c +++ b/libc/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/libc/sysdeps/mach/hurd/getgid.c b/libc/sysdeps/mach/hurd/getgid.c index 916899438..3c6397d2f 100644 --- a/libc/sysdeps/mach/hurd/getgid.c +++ b/libc/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/libc/sysdeps/mach/hurd/gethostid.c b/libc/sysdeps/mach/hurd/gethostid.c index d1d0c6225..4fc301697 100644 --- a/libc/sysdeps/mach/hurd/gethostid.c +++ b/libc/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/libc/sysdeps/mach/hurd/getlogin.c b/libc/sysdeps/mach/hurd/getlogin.c index d88c04377..ce638afaf 100644 --- a/libc/sysdeps/mach/hurd/getlogin.c +++ b/libc/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/libc/sysdeps/mach/hurd/getpid.c b/libc/sysdeps/mach/hurd/getpid.c index e0a8865d4..0c595f7df 100644 --- a/libc/sysdeps/mach/hurd/getpid.c +++ b/libc/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/libc/sysdeps/mach/hurd/getppid.c b/libc/sysdeps/mach/hurd/getppid.c index c622ee9e6..9e35645a2 100644 --- a/libc/sysdeps/mach/hurd/getppid.c +++ b/libc/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/libc/sysdeps/mach/hurd/getsockname.c b/libc/sysdeps/mach/hurd/getsockname.c index f99bb5290..4e6c51793 100644 --- a/libc/sysdeps/mach/hurd/getsockname.c +++ b/libc/sysdeps/mach/hurd/getsockname.c @@ -47,7 +47,7 @@ __getsockname (fd, addrarg, len) if (*len > buflen) *len = buflen; - + if (buf != (char *) addr) { memcpy (addr, buf, *len); diff --git a/libc/sysdeps/mach/hurd/getuid.c b/libc/sysdeps/mach/hurd/getuid.c index fa9e2f8b4..6d9a707ca 100644 --- a/libc/sysdeps/mach/hurd/getuid.c +++ b/libc/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/libc/sysdeps/mach/hurd/net/if_ppp.h b/libc/sysdeps/mach/hurd/net/if_ppp.h index bf5ec8387..1b1c3ea6e 100644 --- a/libc/sysdeps/mach/hurd/net/if_ppp.h +++ b/libc/sysdeps/mach/hurd/net/if_ppp.h @@ -3,7 +3,7 @@ /* * if_ppp.h - Point-to-Point Protocol definitions. * - * Copyright (c) 1989 Carnegie Mellon University. + * Copyright (c) 1989 Carnegie Mellon University. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/libc/sysdeps/mach/hurd/recvfrom.c b/libc/sysdeps/mach/hurd/recvfrom.c index 4830adced..ea85db99f 100644 --- a/libc/sysdeps/mach/hurd/recvfrom.c +++ b/libc/sysdeps/mach/hurd/recvfrom.c @@ -75,7 +75,7 @@ __recvfrom (fd, buf, n, flags, addrarg, addr_len) __mach_port_deallocate (__mach_task_self (), addrport); return __hurd_sockfail (fd, flags, err); } - + if (*addr_len > buflen) *addr_len = buflen; diff --git a/libc/sysdeps/mach/hurd/sync.c b/libc/sysdeps/mach/hurd/sync.c index f4ddf7076..775182eda 100644 --- a/libc/sysdeps/mach/hurd/sync.c +++ b/libc/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)); |