[PATCH] fix netlink compile breakage

From: Jeff Garzik (jgarzik@pobox.com)
Date: Wed Dec 04 2002 - 20:00:17 EST


More viro breakage. I wonder if 'int i' is missing from several other
files I did not compile...


===== net/netlink/netlink_dev.c 1.10 vs edited =====
--- 1.10/net/netlink/netlink_dev.c Mon Dec 2 18:45:41 2002
+++ edited/net/netlink/netlink_dev.c Wed Dec 4 19:58:43 2002
@@ -180,7 +180,7 @@
         {"route6", 11},
         {"ip6_fw", 13},
         {"dnrtmsg", 13},
-}
+};
 
 static void __init make_devfs_entries (const char *name, int minor)
 {
@@ -192,6 +192,8 @@
 
 int __init init_netlink(void)
 {
+ int i;
+
         if (register_chrdev(NETLINK_MAJOR,"netlink", &netlink_fops)) {
                 printk(KERN_ERR "netlink: unable to get major %d\n", NETLINK_MAJOR);
                 return -EIO;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:21 EST