Home page logo
/

nmap-dev logo Nmap Development mailing list archives

[PATCH] Change "*((char *)ifr)" to *ifr->ifr_name
From: "Kris Katterjohn" <kjak () ispwest com>
Date: Tue, 21 Feb 2006 21:01:59 -0800

The only reason I had any idea what "*((char *)ifr)" did was the comment. This
uses ifr->ifr_name instead, which is much easier to read and understand.

Thanks,
Kris Katterjohn

--- tcpip.cc.orig       2006-02-21 11:55:49.000000000 -0600
+++ tcpip.cc    2006-02-21 22:50:12.000000000 -0600
@@ -2251,7 +2251,7 @@ int sd;
 #endif 
 
       /* skip any device with no name */
-      if (!*((char *)ifr))
+      if (!*ifr->ifr_name)
         continue;
 
       /* We currently only handle IPv4 */




_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev


  By Date           By Thread  

Current thread:
  • [PATCH] Change "*((char *)ifr)" to *ifr->ifr_name Kris Katterjohn (Feb 22)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]