patch-2.1.101 linux/net/sunrpc/xprt.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/sunrpc/svcsock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/net/sunrpc/xprt.c linux/net/sunrpc/xprt.c
@@ -1231,7 +1231,7 @@
 	}
 
 	sock = &file->f_inode->u.socket_i;
-	if (sock->ops->family != AF_INET) {
+	if (sock->ops->family != PF_INET) {
 		printk(KERN_WARNING "RPC: only INET sockets supported\n");
 		return NULL;
 	}
@@ -1284,7 +1284,7 @@
 			   (proto == IPPROTO_UDP)? "udp" : "tcp", proto);
 
 	type = (proto == IPPROTO_UDP)? SOCK_DGRAM : SOCK_STREAM;
-	if ((err = sock_create(AF_INET, type, proto, &sock)) < 0) {
+	if ((err = sock_create(PF_INET, type, proto, &sock)) < 0) {
 		printk("RPC: can't create socket (%d).\n", -err);
 		goto failed;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov