error codes are longs, not ints
authorBodo Möller <bodo@openssl.org>
Thu, 15 Mar 2001 11:30:55 +0000 (11:30 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 15 Mar 2001 11:30:55 +0000 (11:30 +0000)
crypto/rand/md_rand.c

index d3261a028c495812f6d64f38a18cd31e5ab6f392..98c6a39f5d0e624cfbb57b7d27362eba99e28f5a 100644 (file)
@@ -482,12 +482,12 @@ static int ssleay_rand_bytes(unsigned char *buf, int num)
    unpredictable */
 static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num) 
        {
-       int ret, err;
+       int ret;
 
        ret = RAND_bytes(buf, num);
        if (ret == 0)
                {
-               err = ERR_peek_error();
+               long 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();