patch-2.1.3 linux/net/unix/af_unix.c
Next file: linux/CREDITS
Previous file: linux/net/netrom/af_netrom.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed Oct 9 20:10:26 1996
- Orig file:
v2.1.2/linux/net/unix/af_unix.c
- Orig date:
Wed Oct 9 08:55:24 1996
diff -u --recursive --new-file v2.1.2/linux/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -1294,18 +1294,21 @@
unix_recvmsg
};
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry proc_net_unix = {
+ PROC_NET_UNIX, 4, "unix",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ unix_get_info
+};
+#endif
void unix_proto_init(struct net_proto *pro)
{
printk(KERN_INFO "NET3: Unix domain sockets 0.12 for Linux NET3.035.\n");
sock_register(unix_proto_ops.family, &unix_proto_ops);
#ifdef CONFIG_PROC_FS
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_UNIX, 4, "unix",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- unix_get_info
- });
+ proc_net_register(&proc_net_unix);
#endif
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov