diff options
| author | thorpej <thorpej@NetBSD.org> | 1995-09-19 22:37:27 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1995-09-19 22:37:27 +0000 |
| commit | e1da0d53905eb19dd54cb544e3c094c37f67056d (patch) | |
| tree | e3e97c16c8db80e68e4e488ba92926ac0463fa44 /sys/compat/linux/common/linux_socket.c | |
| parent | 4d68188f17f2de0d2c9d77f4d31858af10161556 (diff) | |
Make system calls conform to a standard prototype and bring those
prototypes into scope.
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/common/linux_socket.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c index b4b7f0fb6e7..ebb1fe5f0b1 100644 --- a/sys/compat/linux/common/linux_socket.c +++ b/sys/compat/linux/common/linux_socket.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.10 1995/08/14 01:27:55 mycroft Exp $ */ +/* $NetBSD: linux_socket.c,v 1.11 1995/09/19 22:37:35 thorpej Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -369,8 +369,11 @@ linux_sendto(p, args, retval) } int -linux_recvfrom(p, args, retval) +linux_recvfrom(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_recvfrom_args /* { syscallarg(int) s; syscallarg(void *) buf; @@ -378,8 +381,7 @@ linux_recvfrom(p, args, retval) syscallarg(int) flags; syscallarg(struct sockaddr *) from; syscallarg(int *) fromlen; - } */ *args; -{ + } */ *args = v; struct linux_recvfrom_args lra; struct compat_43_recvfrom_args bra; int error; @@ -645,14 +647,16 @@ linux_getsockopt(p, args, retval) * make and take appropriate action. */ int -linux_socketcall(p, uap, retval) +linux_socketcall(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_socketcall_args /* { syscallarg(int) what; syscallarg(void *) args; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; + switch (SCARG(uap, what)) { case LINUX_SYS_socket: return linux_socket(p, SCARG(uap, args), retval); |
