From c4f6e56fca50fa6d14096cedd954bc1544a683d5 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 26 Sep 2005 02:40:18 +0000 Subject: [PATCH] Avoid unused variable warnings. --- crypto/ui/ui_openssl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c index f186a714dc..1f23a45a33 100644 --- a/crypto/ui/ui_openssl.c +++ b/crypto/ui/ui_openssl.c @@ -578,7 +578,9 @@ static int close_console(UI *ui) /* Internal functions to handle signals and act on them */ static void pushsig(void) { +#ifndef OPENSSL_SYS_WIN32 int i; +#endif #ifdef SIGACTION struct sigaction sa; @@ -623,8 +625,6 @@ static void pushsig(void) static void popsig(void) { - int i; - #ifdef OPENSSL_SYS_WIN32 signal(SIGABRT,savsig[SIGABRT]); signal(SIGFPE,savsig[SIGFPE]); @@ -633,6 +633,7 @@ static void popsig(void) signal(SIGSEGV,savsig[SIGSEGV]); signal(SIGTERM,savsig[SIGTERM]); #else + int i; for (i=1; i