diff options
author | 2008-09-12 15:41:40 +0000 | |
---|---|---|
committer | 2008-09-12 15:41:40 +0000 | |
commit | ada3a3e2bbae9d7338ccd776b0b30f84144652fc (patch) | |
tree | de85fa3693253c9e604b0bff88f654af33e16f9d | |
parent | oops missed to decapitalize the first char (diff) | |
download | wireguard-openbsd-ada3a3e2bbae9d7338ccd776b0b30f84144652fc.tar.xz wireguard-openbsd-ada3a3e2bbae9d7338ccd776b0b30f84144652fc.zip |
move the declaration of nfsrv3_procs to nfs_syscalls.c
ok blambert@
-rw-r--r-- | sys/nfs/nfs_socket.c | 33 | ||||
-rw-r--r-- | sys/nfs/nfs_syscalls.c | 35 |
2 files changed, 32 insertions, 36 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index ef9bf8d6f38..2981735e5cc 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.67 2008/07/10 18:17:56 thib Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.68 2008/09/12 15:41:40 thib Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -1589,37 +1589,6 @@ nfs_msg(p, server, msg) } #ifdef NFSSERVER -int (*nfsrv3_procs[NFS_NPROCS])(struct nfsrv_descript *, - struct nfssvc_sock *, struct proc *, - struct mbuf **) = { - nfsrv_null, - nfsrv_getattr, - nfsrv_setattr, - nfsrv_lookup, - nfsrv3_access, - nfsrv_readlink, - nfsrv_read, - nfsrv_write, - nfsrv_create, - nfsrv_mkdir, - nfsrv_symlink, - nfsrv_mknod, - nfsrv_remove, - nfsrv_rmdir, - nfsrv_rename, - nfsrv_link, - nfsrv_readdir, - nfsrv_readdirplus, - nfsrv_statfs, - nfsrv_fsinfo, - nfsrv_pathconf, - nfsrv_commit, - nfsrv_noop, - nfsrv_noop, - nfsrv_noop, - nfsrv_noop -}; - /* * Socket upcall routine for the nfsd sockets. * The caddr_t arg is a pointer to the "struct nfssvc_sock". diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index fee35ed0481..21e119f31c1 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.71 2008/08/08 20:44:38 blambert Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.72 2008/09/12 15:41:40 thib Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -74,18 +74,45 @@ #include <nfs/nfs_var.h> /* Global defs. */ -extern int32_t (*nfsrv3_procs[NFS_NPROCS])(struct nfsrv_descript *, - struct nfssvc_sock *, - struct proc *, struct mbuf **); extern int nfs_numasync; extern int nfsrtton; extern struct nfsstats nfsstats; extern int nfsrvw_procrastinate; struct nfssvc_sock *nfs_udpsock; int nfsd_waiting = 0; + #ifdef NFSSERVER static int nfs_numnfsd = 0; static struct nfsdrt nfsdrt; +int (*nfsrv3_procs[NFS_NPROCS])(struct nfsrv_descript *, + struct nfssvc_sock *, struct proc *, struct mbuf **) = { + nfsrv_null, + nfsrv_getattr, + nfsrv_setattr, + nfsrv_lookup, + nfsrv3_access, + nfsrv_readlink, + nfsrv_read, + nfsrv_write, + nfsrv_create, + nfsrv_mkdir, + nfsrv_symlink, + nfsrv_mknod, + nfsrv_remove, + nfsrv_rmdir, + nfsrv_rename, + nfsrv_link, + nfsrv_readdir, + nfsrv_readdirplus, + nfsrv_statfs, + nfsrv_fsinfo, + nfsrv_pathconf, + nfsrv_commit, + nfsrv_noop, + nfsrv_noop, + nfsrv_noop, + nfsrv_noop +}; #endif struct nfssvc_sockhead nfssvc_sockhead; |