Whamcloud - gitweb
Branch b_release_1_4_6
authoradilger <adilger>
Fri, 2 Dec 2005 18:14:36 +0000 (18:14 +0000)
committeradilger <adilger>
Fri, 2 Dec 2005 18:14:36 +0000 (18:14 +0000)
Fix 2.6.12 compat code.

lnet/klnds/socklnd/socklnd.c
lnet/libcfs/linux/linux-tcpip.c

index 4e3345d..2f001c6 100644 (file)
@@ -2228,10 +2228,10 @@ ksocknal_enumerate_interfaces(ksock_net_t *net)
                 int        up;
                 __u32      ip;
                 __u32      mask;
-                
+
                 if (!strcmp(names[i], "lo")) /* skip the loopback IF */
                         continue;
-                
+
                 rc = libcfs_ipif_query(names[i], &up, &ip, &mask);
                 if (rc != 0) {
                         CWARN("Can't get interface %s info: %d\n",
index e6a1346..3cac8eb 100644 (file)
@@ -565,6 +565,7 @@ EXPORT_SYMBOL(libcfs_sock_listen);
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12)
 int sock_create_lite(int family, int type, int protocol, struct socket **res)
 {
+        int err = 0;
         struct socket *sock;
 
         sock = sock_alloc();