diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-08-06 22:06:35 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-08-06 22:06:35 +0000 |
commit | ddfb1e3a892f450178093964f11cdc534340a56a (patch) | |
tree | bd4792fa1c6e3db400a59e629086fa1bb74a6c65 /ssh-keyscan.c | |
parent | e690121f0de556b0e4595630540ab0ae52115c0d (diff) |
- jakob@cvs.openbsd.org 2001/08/03 10:31:30
[ssh-add.c ssh-agent.c ssh-keyscan.c]
improve usage(). ok markus@
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index 9f7aa94aa..9908baac4 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c | |||
@@ -7,7 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "includes.h" | 9 | #include "includes.h" |
10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.24 2001/06/23 15:12:20 itojun Exp $"); | 10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.25 2001/08/03 10:31:30 jakob Exp $"); |
11 | 11 | ||
12 | #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) | 12 | #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) |
13 | #include <sys/queue.h> | 13 | #include <sys/queue.h> |
@@ -582,8 +582,12 @@ nexthost(int argc, char **argv) | |||
582 | static void | 582 | static void |
583 | usage(void) | 583 | usage(void) |
584 | { | 584 | { |
585 | fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname); | 585 | fprintf(stderr, "Usage: %s [options] [ host | addrlist namelist ]\n", |
586 | return; | 586 | __progname); |
587 | fprintf(stderr, "Options:\n"); | ||
588 | fprintf(stderr, " -t timeout Set connection timeout.\n"); | ||
589 | fprintf(stderr, " -f file Read hosts or addresses from file.\n"); | ||
590 | exit(1); | ||
587 | } | 591 | } |
588 | 592 | ||
589 | int | 593 | int |