wget: -O FILE is allowed to overwrite existing file (compat)
[oweals/busybox.git] / networking / ether-wake.c
index b67e1b5d8973a749dd7323e601ac23896a384164..fc26ad07d127e5214dfdf8237077f72e48c93b31 100644 (file)
@@ -92,7 +92,7 @@ void bb_debug_dump_packet(unsigned char *outpack, int pktsize)
        printf("packet dump:\n");
        for (i = 0; i < pktsize; ++i) {
                printf("%2.2x ", outpack[i]);
-               if (i % 20 == 19) puts("");
+               if (i % 20 == 19) bb_putchar('\n');
        }
        printf("\n\n");
 }
@@ -195,7 +195,7 @@ int ether_wake_main(int argc, char **argv)
 
        /* handle misc user options */
        opt_complementary = "=1";
-       flags = getopt32(argc, argv, "bi:p:", &ifname, &pass);
+       flags = getopt32(argv, "bi:p:", &ifname, &pass);
        if (flags & 4) /* -p */
                wol_passwd_sz = get_wol_pw(pass, wol_passwd);
        flags &= 1; /* we further interested only in -b [bcast] flag */