Sync man page and usage string.
This commit is contained in:
parent
eee9b17e46
commit
7766b145c4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26724
@ -70,8 +70,6 @@ static char rcsid[] = "$NetBSD$";
|
|||||||
|
|
||||||
int s;
|
int s;
|
||||||
|
|
||||||
char *pgmname;
|
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct rip rip;
|
struct rip rip;
|
||||||
char packet[MAXPACKETSIZE+MAXPATHLEN];
|
char packet[MAXPACKETSIZE+MAXPATHLEN];
|
||||||
@ -117,7 +115,6 @@ main(int argc,
|
|||||||
OMSG.rip_nets[0].n_family = RIP_AF_UNSPEC;
|
OMSG.rip_nets[0].n_family = RIP_AF_UNSPEC;
|
||||||
OMSG.rip_nets[0].n_metric = htonl(HOPCNT_INFINITY);
|
OMSG.rip_nets[0].n_metric = htonl(HOPCNT_INFINITY);
|
||||||
|
|
||||||
pgmname = argv[0];
|
|
||||||
while ((ch = getopt(argc, argv, "np1w:r:t:a:")) != -1)
|
while ((ch = getopt(argc, argv, "np1w:r:t:a:")) != -1)
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'n':
|
case 'n':
|
||||||
@ -150,8 +147,7 @@ main(int argc,
|
|||||||
if (!rflag) {
|
if (!rflag) {
|
||||||
struct hostent *hp = gethostbyname(optarg);
|
struct hostent *hp = gethostbyname(optarg);
|
||||||
if (hp == 0) {
|
if (hp == 0) {
|
||||||
fprintf(stderr, "%s: %s:",
|
fprintf(stderr, "rtquery: %s:", optarg);
|
||||||
pgmname, optarg);
|
|
||||||
herror(0);
|
herror(0);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -242,11 +238,9 @@ main(int argc,
|
|||||||
argv += optind;
|
argv += optind;
|
||||||
argc -= optind;
|
argc -= optind;
|
||||||
if ((not_trace && trace) || argc == 0) {
|
if ((not_trace && trace) || argc == 0) {
|
||||||
usage: fprintf(stderr, "%s: [-np1v] [-r tgt_rt] [-w wtime]"
|
usage: fprintf(stderr, "%s\n%s\n",
|
||||||
" [-a type=passwd] host1 [host2 ...]\n"
|
"usage: rtquery [-np1v] [-r addr] [-w timeout] [-a secret] host ...",
|
||||||
"or\t-t {on=filename|more|off|dump}"
|
" rtquery [-t op] host ...");
|
||||||
" host1 [host2 ...]\n",
|
|
||||||
pgmname);
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user