summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index 7f4543e92..27e064d64 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -35,6 +35,12 @@ RCSID("$OpenBSD: ssh-agent.c,v 1.17 1999/11/02 19:42:36 markus Exp $");
35#include <ssl/md5.h> 35#include <ssl/md5.h>
36#endif 36#endif
37 37
38#ifdef HAVE___PROGNAME
39extern char *__progname;
40#else /* HAVE___PROGNAME */
41const char *__progname = "ssh-agent";
42#endif /* HAVE___PROGNAME */
43
38typedef struct 44typedef struct
39{ 45{
40 int fd; 46 int fd;
@@ -505,8 +511,6 @@ cleanup_exit(int i)
505void 511void
506usage() 512usage()
507{ 513{
508 extern char *__progname;
509
510 fprintf(stderr, "ssh-agent version %s\n", SSH_VERSION); 514 fprintf(stderr, "ssh-agent version %s\n", SSH_VERSION);
511 fprintf(stderr, "Usage: %s [-c | -s] [-k] [command {args...]]\n", 515 fprintf(stderr, "Usage: %s [-c | -s] [-k] [command {args...]]\n",
512 __progname); 516 __progname);
@@ -524,7 +528,6 @@ main(int ac, char **av)
524 528
525 /* check if RSA support exists */ 529 /* check if RSA support exists */
526 if (rsa_alive() == 0) { 530 if (rsa_alive() == 0) {
527 extern char *__progname;
528 fprintf(stderr, 531 fprintf(stderr,
529 "%s: no RSA support in libssl and libcrypto. See ssl(8).\n", 532 "%s: no RSA support in libssl and libcrypto. See ssl(8).\n",
530 __progname); 533 __progname);