summaryrefslogtreecommitdiff
path: root/ssh-rand-helper.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-12-25 04:32:58 +0000
committerKevin Steves <stevesk@pobox.com>2001-12-25 04:32:58 +0000
commit9443508b96e2d2682a221bc17110e87a38503dc5 (patch)
tree10cf068f7bcf2ad79243bd659a9109e6d307b77d /ssh-rand-helper.c
parentb063f01dd5410f30f075c2a6e84d68fc09b7755c (diff)
- (stevesk) [Makefile.in ssh-rand-helper.c]
portable lib and __progname support for ssh-rand-helper; ok djm@
Diffstat (limited to 'ssh-rand-helper.c')
-rw-r--r--ssh-rand-helper.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c
index 5b7a9fc6..380fee46 100644
--- a/ssh-rand-helper.c
+++ b/ssh-rand-helper.c
@@ -39,7 +39,13 @@
#include "pathnames.h"
#include "log.h"
-RCSID("$Id: ssh-rand-helper.c,v 1.1 2001/12/23 14:41:48 djm Exp $");
+#ifdef HAVE___PROGNAME
+extern char *__progname;
+#else
+char *__progname;
+#endif
+
+RCSID("$Id: ssh-rand-helper.c,v 1.2 2001/12/25 04:32:58 stevesk Exp $");
#define RANDOM_SEED_SIZE 48
@@ -786,6 +792,7 @@ main(int argc, char **argv)
unsigned char buf[48];
int ret;
+ __progname = get_progname(argv[0]);
/* XXX: need some debugging mode */
log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);