patch-1.3.57 linux/fs/nfs/nfsroot.c
Next file: linux/fs/nfs/sock.c
Previous file: linux/fs/msdos/inode.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Jan 9 11:29:28 1996
- Orig file:
v1.3.56/linux/fs/nfs/nfsroot.c
- Orig date:
Thu Dec 21 08:53:33 1995
diff -u --recursive --new-file v1.3.56/linux/fs/nfs/nfsroot.c linux/fs/nfs/nfsroot.c
@@ -675,7 +675,7 @@
static struct inode nfs_inode; /* Inode containing socket */
static int *rpc_packet = NULL; /* RPC packet */
-extern asmlinkage int sys_socketcall(int call, unsigned long *args);
+extern asmlinkage int sys_socket(int family, int type, int protocol);
/*
@@ -684,10 +684,9 @@
static int root_nfs_open(void)
{
struct file *filp;
- unsigned long opt[] = { AF_INET, SOCK_DGRAM, IPPROTO_UDP };
/* Open the socket */
- if ((nfs_data.fd = sys_socketcall(SYS_SOCKET, opt)) < 0) {
+ if ((nfs_data.fd = sys_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
printk(KERN_ERR "NFS: Cannot open UDP socket\n");
return -1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this