patch-2.1.101 linux/net/unix/af_unix.c
Next file: linux/net/unix/garbage.c
Previous file: linux/net/sunrpc/xprt.c
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Fri May 8 00:08:02 1998
- Orig file:
v2.1.100/linux/net/unix/af_unix.c
- Orig date:
Thu Mar 26 15:57:25 1998
diff -u --recursive --new-file v2.1.100/linux/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -364,14 +364,14 @@
default:
return -ESOCKTNOSUPPORT;
}
- sk = sk_alloc(AF_UNIX, GFP_KERNEL, 1);
+ sk = sk_alloc(PF_UNIX, GFP_KERNEL, 1);
if (!sk)
return -ENOMEM;
sock_init_data(sock,sk);
sk->destruct = unix_destruct_addr;
- sk->protinfo.af_unix.family=AF_UNIX;
+ sk->protinfo.af_unix.family=PF_UNIX;
sk->protinfo.af_unix.dentry=NULL;
sk->sock_readers=1; /* Us */
sk->protinfo.af_unix.readsem=MUTEX; /* single task reading lock */
@@ -1446,7 +1446,7 @@
#endif
struct proto_ops unix_stream_ops = {
- AF_UNIX,
+ PF_UNIX,
sock_no_dup,
unix_release,
@@ -1467,7 +1467,7 @@
};
struct proto_ops unix_dgram_ops = {
- AF_UNIX,
+ PF_UNIX,
sock_no_dup,
unix_release,
@@ -1488,7 +1488,7 @@
};
struct net_proto_family unix_family_ops = {
- AF_UNIX,
+ PF_UNIX,
unix_create
};
@@ -1534,7 +1534,7 @@
#ifdef MODULE
void cleanup_module(void)
{
- sock_unregister(AF_UNIX);
+ sock_unregister(PF_UNIX);
#ifdef CONFIG_SYSCTL
unix_sysctl_unregister();
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov