ERR_peek_error() returns "unsigned long".
authorLutz Jänicke <jaenicke@openssl.org>
Thu, 7 Jun 2001 17:20:50 +0000 (17:20 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Thu, 7 Jun 2001 17:20:50 +0000 (17:20 +0000)
crypto/rand/md_rand.c

index c8728a07bf6827e9f8eb6f7ffe89c6c1bff7cb9f..d4d2f36ad4f2acf998d93b6bcc7c44b26c8fcc67 100644 (file)
@@ -493,11 +493,12 @@ static int ssleay_rand_bytes(unsigned char *buf, int num)
 static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num) 
        {
        int ret;
+       unsigned long err;
 
        ret = RAND_bytes(buf, num);
        if (ret == 0)
                {
-               long err = ERR_peek_error();
+               err = ERR_peek_error();
                if (ERR_GET_LIB(err) == ERR_LIB_RAND &&
                    ERR_GET_REASON(err) == RAND_R_PRNG_NOT_SEEDED)
                        (void)ERR_get_error();