On 02/01/2011 05:10 PM, Mark Rustad wrote:
+static int get_link_ifname(const char *ifname, char *link_ifname)
+{
+       int ifindex;
+
+       if (sysfs_get_int(ifname, "net", "iflink",&ifindex))
+               return EIO;

In the rest of the code you use -EXYZ, but here you use the positive value. You meant -EIO, right? I can fix that up on merge.

+
+       if (!if_indextoname(ifindex, link_ifname))
+               return -ENODEV;
+
+       return 0;
+}
+

--
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to