Make "run" volatile
[openssl.git] / apps / speed.c
index b5d7921e5f138f69a3e5aa1ec82d70ea93245b65..3dcfb8d89089972483ad53f2bf41da67051644a4 100644 (file)
 #define BUFSIZE        (1024*8+1)
 #define MAX_MISALIGNMENT 63
 
-int run=0;
+static volatile int run=0;
 
 static int mr=0;
 static int usertime=1;
@@ -272,9 +272,6 @@ static SIGRETTYPE sig_done(int sig)
        {
        signal(SIGALRM,sig_done);
        run=0;
-#ifdef LINT
-       sig=sig;
-#endif
        }
 #endif
 
@@ -2648,9 +2645,6 @@ static void print_message(const char *s, long num, int length)
        BIO_printf(bio_err,mr ? "+DN:%s:%ld:%d\n"
                   : "Doing %s %ld times on %d size blocks: ",s,num,length);
        (void)BIO_flush(bio_err);
-#endif
-#ifdef LINT
-       num=num;
 #endif
        }
 
@@ -2666,9 +2660,6 @@ static void pkey_print_message(const char *str, const char *str2, long num,
        BIO_printf(bio_err,mr ? "+DNP:%ld:%d:%s:%s\n"
                           : "Doing %ld %d bit %s %s's: ",num,bits,str,str2);
        (void)BIO_flush(bio_err);
-#endif
-#ifdef LINT
-       num=num;
 #endif
        }