You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2021/01/27 10:38:21 UTC
[incubator-nuttx-apps] branch master updated: netdb: Fix usage and
comment
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new bb620bb netdb: Fix usage and comment
bb620bb is described below
commit bb620bb95c52415d048bd41aceeb6c22788de821
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Jan 27 17:14:59 2021 +0900
netdb: Fix usage and comment
---
system/netdb/netdb_main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/system/netdb/netdb_main.c b/system/netdb/netdb_main.c
index 4a83dd6..9285a73 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 <ipv4-addr>\n", progname);
#ifdef HAVE_GETHOSTBYADDR
+ fprintf(stderr, "USAGE: %s --ipv4 <ipv4-addr>\n", progname);
fprintf(stderr, " %s --ipv6 <ipv6-addr>\n", progname);
- fprintf(stderr, " %s --host <host-name>\n", progname);
#endif
+ fprintf(stderr, " %s --host <host-name>\n", progname);
fprintf(stderr, " %s --help\n", progname);
exit(exitcode);
}
@@ -152,7 +152,7 @@ int main(int argc, FAR char *argv[])
}
}
- /* Handle: netdb --ipv46<ipv6-addr> */
+ /* Handle: netdb --ipv6 <ipv6-addr> */
else if (strcmp(argv[1], "--ipv6") == 0)
{