Sync man page and usage string.
This commit is contained in:
parent
eee9b17e46
commit
7766b145c4
@ -70,8 +70,6 @@ static char rcsid[] = "$NetBSD$";
|
||||
|
||||
int s;
|
||||
|
||||
char *pgmname;
|
||||
|
||||
union {
|
||||
struct rip rip;
|
||||
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_metric = htonl(HOPCNT_INFINITY);
|
||||
|
||||
pgmname = argv[0];
|
||||
while ((ch = getopt(argc, argv, "np1w:r:t:a:")) != -1)
|
||||
switch (ch) {
|
||||
case 'n':
|
||||
@ -150,8 +147,7 @@ main(int argc,
|
||||
if (!rflag) {
|
||||
struct hostent *hp = gethostbyname(optarg);
|
||||
if (hp == 0) {
|
||||
fprintf(stderr, "%s: %s:",
|
||||
pgmname, optarg);
|
||||
fprintf(stderr, "rtquery: %s:", optarg);
|
||||
herror(0);
|
||||
exit(1);
|
||||
}
|
||||
@ -242,11 +238,9 @@ main(int argc,
|
||||
argv += optind;
|
||||
argc -= optind;
|
||||
if ((not_trace && trace) || argc == 0) {
|
||||
usage: fprintf(stderr, "%s: [-np1v] [-r tgt_rt] [-w wtime]"
|
||||
" [-a type=passwd] host1 [host2 ...]\n"
|
||||
"or\t-t {on=filename|more|off|dump}"
|
||||
" host1 [host2 ...]\n",
|
||||
pgmname);
|
||||
usage: fprintf(stderr, "%s\n%s\n",
|
||||
"usage: rtquery [-np1v] [-r addr] [-w timeout] [-a secret] host ...",
|
||||
" rtquery [-t op] host ...");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user