Implement suggestion from Adam Slattery, (don't default to killing closing bug #1190.
[oweals/busybox.git] / ifconfig.c
index 75bcf38e8f25a2946389f17737f4a25d18320d82..61d73f56bf925986713af9526b62e1487efc790d 100644 (file)
@@ -15,7 +15,7 @@
  * Foundation;  either  version 2 of the License, or  (at
  * your option) any later version.
  *
- * $Id: ifconfig.c,v 1.8 2001/03/12 09:57:59 mjn3 Exp $
+ * $Id: ifconfig.c,v 1.10 2001/03/26 16:26:16 mjn3 Exp $
  *
  */
 
@@ -278,7 +278,7 @@ int ifconfig_main(int argc, char **argv)
 #ifdef BB_FEATURE_IFCONFIG_STATUS
                return display_interfaces(argc ? *argv : NULL);
 #else
-               show_usage();
+               error_msg_and_die( "ifconfig was not compiled with interface status display support.");
 #endif
        }
 
@@ -472,9 +472,9 @@ in_ether(char *bufp, struct sockaddr *sap)
                        if (c >= '0' && c <= '9') {
                                c -= '0';
                        } else if (c >= 'a' && c <= 'f') {
-                               c -= ('a' + 10);
+                               c -= ('a' - 10);
                        } else if (c >= 'A' && c <= 'F') {
-                               c -= ('A' + 10);
+                               c -= ('A' - 10);
                        } else if (j && (c == ':' || c == 0)) {
                                break;
                        } else {