Module Name: src Committed By: riastradh Date: Wed Feb 5 13:10:29 UTC 2025
Modified Files: src/usr.bin/getnameinfo: getnameinfo.1 getnameinfo.c Log Message: getnameinfo(1): <IP-address> argument is optional. With the -S option, it is not required. Note this in the usage text and the man page. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/usr.bin/getnameinfo/getnameinfo.1 cvs rdiff -u -r1.6 -r1.7 src/usr.bin/getnameinfo/getnameinfo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/getnameinfo/getnameinfo.1 diff -u src/usr.bin/getnameinfo/getnameinfo.1:1.2 src/usr.bin/getnameinfo/getnameinfo.1:1.3 --- src/usr.bin/getnameinfo/getnameinfo.1:1.2 Mon Jan 27 19:12:11 2025 +++ src/usr.bin/getnameinfo/getnameinfo.1 Wed Feb 5 13:10:29 2025 @@ -1,4 +1,4 @@ -.\" $NetBSD: getnameinfo.1,v 1.2 2025/01/27 19:12:11 wiz Exp $ +.\" $NetBSD: getnameinfo.1,v 1.3 2025/02/05 13:10:29 riastradh Exp $ .\" .\" Copyright (c) 2025 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -37,7 +37,7 @@ .Nm .Op Fl 46fHNnrSu .Op Fl p Ar port -.Ar IP-address +.Op Ar IP-address .Sh DESCRIPTION The .Nm Index: src/usr.bin/getnameinfo/getnameinfo.c diff -u src/usr.bin/getnameinfo/getnameinfo.c:1.6 src/usr.bin/getnameinfo/getnameinfo.c:1.7 --- src/usr.bin/getnameinfo/getnameinfo.c:1.6 Wed Feb 5 12:52:58 2025 +++ src/usr.bin/getnameinfo/getnameinfo.c Wed Feb 5 13:10:29 2025 @@ -1,4 +1,4 @@ -/* $NetBSD: getnameinfo.c,v 1.6 2025/02/05 12:52:58 riastradh Exp $ */ +/* $NetBSD: getnameinfo.c,v 1.7 2025/02/05 13:10:29 riastradh Exp $ */ /* * Copyright (c) 2025 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: getnameinfo.c,v 1.6 2025/02/05 12:52:58 riastradh Exp $"); +__RCSID("$NetBSD: getnameinfo.c,v 1.7 2025/02/05 13:10:29 riastradh Exp $"); #endif #include <sys/types.h> @@ -56,7 +56,7 @@ __RCSID("$NetBSD: getnameinfo.c,v 1.6 20 * similar to the getnameinfo function in the standard library. * * usage: - * getnameinfo [-46fHNnrSu] [-p port] <IP-address> + * getnameinfo [-46fHNnrSu] [-p port] [<IP-address>] * * -4: Restrict lookup to IPv4 addresses only * -6: Restrict lookup to IPv6 addresses only @@ -264,6 +264,6 @@ usage(void) { (void)fprintf(stderr, "Usage: %s", getprogname()); - (void)fprintf(stderr, " [-46fHNnrSu] [-p port] <IP-address>\n"); + (void)fprintf(stderr, " [-46fHNnrSu] [-p port] [<IP-address>]\n"); exit(EXIT_FAILURE); }