X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=networking%2Fipcalc.c;h=18abc12eb405a07d8ae6aae342cab8d62a99d5fb;hb=d7171c114028815df4e92f9c26875f1d60c6af2a;hp=8578893af6d14728f4c68ab7412f3c7abf9ecb28;hpb=fcc6347976ded376c9effe3b9fb216b00b2140cb;p=oweals%2Fbusybox.git diff --git a/networking/ipcalc.c b/networking/ipcalc.c index 8578893af..18abc12eb 100644 --- a/networking/ipcalc.c +++ b/networking/ipcalc.c @@ -86,7 +86,7 @@ int ipcalc_main(int argc, char **argv) #if ENABLE_FEATURE_IPCALC_LONG_OPTIONS applet_long_options = ipcalc_longopts; #endif - opt = getopt32(argv, "mbn" USE_FEATURE_IPCALC_FANCY("phs")); + opt = getopt32(argv, "mbn" IF_FEATURE_IPCALC_FANCY("phs")); argc -= optind; argv += optind; if (opt & (BROADCAST | NETWORK | NETPREFIX)) { @@ -178,10 +178,10 @@ int ipcalc_main(int argc, char **argv) hostinfo = gethostbyaddr((char *) &ipaddr, sizeof(ipaddr), AF_INET); if (!hostinfo) { - bb_herror_msg_and_die("cannot find hostname for %s", argv[0]); + bb_herror_msg_and_die("can't find hostname for %s", argv[0]); } str_tolower(hostinfo->h_name); - + printf("HOSTNAME=%s\n", hostinfo->h_name); } }