wget: -O FILE is allowed to overwrite existing file (compat)
[oweals/busybox.git] / networking / hostname.c
index 862bbdfa26afa021fef9bdd15d63e89f7cf561ad..6783dbacb38cd41066b716f82b924a71b00b0af0 100644 (file)
@@ -60,7 +60,7 @@ int hostname_main(int argc, char **argv)
        if (argc < 1)
                bb_show_usage();
 
-       getopt32(argc, argv, "dfisF:", &hostname_str);
+       getopt32(argv, "dfisF:", &hostname_str);
 
        /* Output in desired format */
        if (option_mask32 & OPT_dfis) {
@@ -83,7 +83,7 @@ int hostname_main(int argc, char **argv)
                        while (hp->h_addr_list[0]) {
                                printf("%s ", inet_ntoa(*(struct in_addr *) (*hp->h_addr_list++)));
                        }
-                       puts("");
+                       bb_putchar('\n');
                }
        }
        /* Set the hostname */