diff --git a/system/netdb/netdb_main.c b/system/netdb/netdb_main.c index 4a83dd665..9285a7307 100644 --- a/system/netdb/netdb_main.c +++ b/system/netdb/netdb_main.c @@ -82,11 +82,11 @@ static void show_usage(FAR const char *progname, int exitcode) noreturn_function; static void show_usage(FAR const char *progname, int exitcode) { - fprintf(stderr, "USAGE: %s --ipv4 \n", progname); #ifdef HAVE_GETHOSTBYADDR + fprintf(stderr, "USAGE: %s --ipv4 \n", progname); fprintf(stderr, " %s --ipv6 \n", progname); - fprintf(stderr, " %s --host \n", progname); #endif + fprintf(stderr, " %s --host \n", progname); fprintf(stderr, " %s --help\n", progname); exit(exitcode); } @@ -152,7 +152,7 @@ int main(int argc, FAR char *argv[]) } } - /* Handle: netdb --ipv46 */ + /* Handle: netdb --ipv6 */ else if (strcmp(argv[1], "--ipv6") == 0) {