patch-2.1.101 linux/net/netrom/af_netrom.c

Next file: linux/net/netsyms.c
Previous file: linux/net/netlink/netlink_dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -98,7 +98,7 @@
 	struct sock *sk;
 	nr_cb *nr;
 
-	if ((sk = sk_alloc(AF_NETROM, GFP_ATOMIC, 1)) == NULL)
+	if ((sk = sk_alloc(PF_NETROM, GFP_ATOMIC, 1)) == NULL)
 		return NULL;
 
 	if ((nr = kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) {
@@ -1235,12 +1235,12 @@
 
 static struct net_proto_family nr_family_ops = 
 {
-	AF_NETROM,
+	PF_NETROM,
 	nr_create
 };
 
 static struct proto_ops nr_proto_ops = {
-	AF_NETROM,
+	PF_NETROM,
 
 	sock_no_dup,
 	nr_release,
@@ -1363,7 +1363,7 @@
 #ifdef CONFIG_SYSCTL
 	nr_unregister_sysctl();
 #endif
-	sock_unregister(AF_NETROM);
+	sock_unregister(PF_NETROM);
 
 	for (i = 0; i < nr_ndevs; i++) {
 		if (dev_nr[i].priv != NULL) {

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