diff options
author | phk <phk@FreeBSD.org> | 1995-12-14 08:32:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-14 08:32:45 +0000 |
commit | 63ec2c0ae9b44c5394bae5d6ee7fea5be9659585 (patch) | |
tree | 17b584943b186d479fdf3906ec2bef1ea2ca47bf /sys/kern/sys_socket.c | |
parent | 30e263dcabc35e19f5e060d92f09d212e9b56668 (diff) | |
download | FreeBSD-src-63ec2c0ae9b44c5394bae5d6ee7fea5be9659585.zip FreeBSD-src-63ec2c0ae9b44c5394bae5d6ee7fea5be9659585.tar.gz |
A Major staticize sweep. Generates a couple of warnings that I'll deal
with later.
A number of unused vars removed.
A number of unused procs removed or #ifdefed.
Diffstat (limited to 'sys/kern/sys_socket.c')
-rw-r--r-- | sys/kern/sys_socket.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index 92cbedc..e3e7c5a 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)sys_socket.c 8.1 (Berkeley) 6/10/93 - * $Id: sys_socket.c,v 1.4 1994/10/02 17:35:25 phk Exp $ + * $Id: sys_socket.c,v 1.5 1995/05/30 08:05:59 rgrimes Exp $ */ #include <sys/param.h> @@ -49,11 +49,17 @@ #include <net/if.h> #include <net/route.h> +static int soo_read __P((struct file *fp, struct uio *uio, + struct ucred *cred)); +static int soo_write __P((struct file *fp, struct uio *uio, + struct ucred *cred)); +static int soo_close __P((struct file *fp, struct proc *p)); + struct fileops socketops = { soo_read, soo_write, soo_ioctl, soo_select, soo_close }; /* ARGSUSED */ -int +static int soo_read(fp, uio, cred) struct file *fp; struct uio *uio; @@ -65,7 +71,7 @@ soo_read(fp, uio, cred) } /* ARGSUSED */ -int +static int soo_write(fp, uio, cred) struct file *fp; struct uio *uio; @@ -191,7 +197,7 @@ soo_stat(so, ub) } /* ARGSUSED */ -int +static int soo_close(fp, p) struct file *fp; struct proc *p; |