From bff24b8ad29f4b5427ffbe017acafdb3efc1b951 Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Sun, 28 Feb 2010 14:51:56 -0800 Subject: - (tim) [ssh-pkcs11-helper.c] Move declarations before calling functions to make older compilers (gcc 2.95) happy. --- ChangeLog | 2 ++ ssh-pkcs11-helper.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06f51986..74bfc046 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ platform, passwords are stored case-insensitively, but sshd requires exact case matching for Match blocks in sshd_config(5). Based on a patch from vinschen AT redhat.com. + - (tim) [ssh-pkcs11-helper.c] Move declarations before calling functions + to make older compilers (gcc 2.95) happy. 20100227 - (djm) [ssh-pkcs11-helper.c ] Ensure RNG is initialised and seeded diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c index 54786c62..d3bfb983 100644 --- a/ssh-pkcs11-helper.c +++ b/ssh-pkcs11-helper.c @@ -274,12 +274,12 @@ main(int argc, char **argv) LogLevel log_level = SYSLOG_LEVEL_ERROR; char buf[4*4096]; - TAILQ_INIT(&pkcs11_keylist); - pkcs11_init(0); - extern char *optarg; extern char *__progname; + TAILQ_INIT(&pkcs11_keylist); + pkcs11_init(0); + init_rng(); seed_rng(); __progname = ssh_get_progname(argv[0]); -- cgit v1.2.3