File net-tools-1.60-interface_socket.diff of Package net-tools

--- net-tools-1.60/lib/interface.c	2008-11-20 12:01:16.000000000 +0100
+++ net-tools-1.60/lib/interface.c	2008-11-20 12:19:22.000000000 +0100
@@ -161,12 +161,10 @@
        (as of 2.1.128) */ 
     skfd = get_socket_for_af(AF_INET);
     if (skfd < 0) {
-	fprintf(stderr, _("warning: no inet socket available: %s\n"),
-		strerror(errno));
-	/* Try to soldier on with whatever socket we can get hold of.  */
-	skfd = sockets_open(0);
-	if (skfd < 0)
-	    return -1;
+	    /* Try to soldier on with whatever socket we can get hold of.  */
+	    skfd = sockets_open(0);
+	    if (skfd < 0)
+	        return -1;
     }
 
     ifc.ifc_buf = NULL;