Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > 8169e546905b5f9a9f64bac2ff685f8e > files > 2

wireless-tools-29-alt2.M41.1.src.rpm

diff -urN wireless_tools.28.orig/ifrename.c wireless_tools.28/ifrename.c
--- wireless_tools.28.orig/ifrename.c	2005-05-27 03:15:55 +0400
+++ wireless_tools.28/ifrename.c	2005-11-27 16:26:06 +0300
@@ -1726,14 +1726,7 @@
   memcpy(ifnode->ifname, pos, len); 
   ifnode->ifname[len] = '\0'; 
 
-  /* Check the interface name and issue various pedantic warnings.
-   * We assume people using takeover want to force interfaces to those
-   * names and know what they are doing, so don't bother them... */
-  if((!force_takeover) &&
-     ((!strcmp(ifnode->ifname, "eth0")) || (!strcmp(ifnode->ifname, "wlan0"))))
-    fprintf(stderr,
-	    "Warning: Interface name is `%s' at line %d, can't be mapped reliably.\n",
-	    ifnode->ifname, linenum);
+  /* Check the interface name and issue various pedantic warnings. */
   if(strchr(ifnode->ifname, ':'))
     fprintf(stderr, "Warning: Alias device `%s' at line %d probably can't be mapped.\n",
 	    ifnode->ifname, linenum);