summaryrefslogtreecommitdiffstats
path: root/ssh-agent.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-15 07:10:57 +0100
committerDamien Miller <djm@mindrot.org>1999-11-15 07:10:57 +0100
commit3f905872b0d15be24078c4db131f0ecdb5ebb5e6 (patch)
tree700210571ddc52d55dcbaabf593e52b5d7531c3f /ssh-agent.c
parentFixed spello (diff)
downloadopenssh-3f905872b0d15be24078c4db131f0ecdb5ebb5e6.tar.xz
openssh-3f905872b0d15be24078c4db131f0ecdb5ebb5e6.zip
- Merged more Solaris compability from Marc G. Fournier
<marc.fournier@acadiau.ca> - Wrote autoconf tests for __progname symbol
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 $");
#include <ssl/md5.h>
#endif
+#ifdef HAVE___PROGNAME
+extern char *__progname;
+#else /* HAVE___PROGNAME */
+const char *__progname = "ssh-agent";
+#endif /* HAVE___PROGNAME */
+
typedef struct
{
int fd;
@@ -505,8 +511,6 @@ cleanup_exit(int i)
void
usage()
{
- extern char *__progname;
-
fprintf(stderr, "ssh-agent version %s\n", SSH_VERSION);
fprintf(stderr, "Usage: %s [-c | -s] [-k] [command {args...]]\n",
__progname);
@@ -524,7 +528,6 @@ main(int ac, char **av)
/* check if RSA support exists */
if (rsa_alive() == 0) {
- extern char *__progname;
fprintf(stderr,
"%s: no RSA support in libssl and libcrypto. See ssl(8).\n",
__progname);