diff options
author | charnier <charnier@FreeBSD.org> | 1997-06-18 06:33:11 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-06-18 06:33:11 +0000 |
commit | b430896bf149df144871950641408580af180b3d (patch) | |
tree | ec1b93fcfb1153c64ed0971b9f74959e077cab13 /sbin/routed | |
parent | a7ec83088076243e414cbd9257cd438123913dd1 (diff) | |
download | FreeBSD-src-b430896bf149df144871950641408580af180b3d.zip FreeBSD-src-b430896bf149df144871950641408580af180b3d.tar.gz |
Sync man page and usage string.
Diffstat (limited to 'sbin/routed')
-rw-r--r-- | sbin/routed/rtquery/rtquery.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sbin/routed/rtquery/rtquery.c b/sbin/routed/rtquery/rtquery.c index 18c1b1a..e031c26 100644 --- a/sbin/routed/rtquery/rtquery.c +++ b/sbin/routed/rtquery/rtquery.c @@ -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); } |