summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-03-05 11:40:19 +1100
committerDamien Miller <djm@mindrot.org>2010-03-05 11:40:19 +1100
commit48b6021721fb2083898be696a72b261a9136c293 (patch)
treeb84f3468f1ed214ebe47e0718663b4e3be185eda
parent689b872842ba2e64d2bf52abe0c9b1b1f6a6663f (diff)
- (djm) [ssh-rand-helper.c] declare optind, avoiding compilation failure
on some platforms
-rw-r--r--ChangeLog2
-rw-r--r--ssh-rand-helper.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b50de5d..ee1804fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,8 @@
imorgan AT nas.nasa.gov
- (tim) [ssh-pkcs11.c] Fix "non-constant initializer" errors in older
compilers. OK djm@
+ - (djm) [ssh-rand-helper.c] declare optind, avoiding compilation failure
+ on some platforms
20100304
- (djm) [ssh-keygen.c] Use correct local variable, instead of
diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c
index 0fcda7ff..fa507049 100644
--- a/ssh-rand-helper.c
+++ b/ssh-rand-helper.c
@@ -818,6 +818,7 @@ main(int argc, char **argv)
unsigned char *buf;
int ret, ch, debug_level, output_hex, bytes;
extern char *optarg;
+ extern int optind;
LogLevel ll;
__progname = ssh_get_progname(argv[0]);