From: Andy Polyakov Date: Sun, 15 Jan 2012 17:13:57 +0000 (+0000) Subject: cryptlib.c: sscanf warning. X-Git-Tag: master-post-reformat~1979 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a985410d2df042e302ba210a5963d308aec46d35;p=oweals%2Fopenssl.git cryptlib.c: sscanf warning. --- diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index ec8abdce9a..2341b7b112 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -149,7 +149,7 @@ void OPENSSL_cpuid_setup(void) #if defined(_WIN32) if (!sscanf(env+off,"%I64i",&vec)) vec = strtoul(env+off,NULL,0); #else - if (!sscanf(env+off,"%lli",&vec)) vec = strtoul(env+off,NULL,0); + if (!sscanf(env+off,"%lli",(long long *)&vec)) vec = strtoul(env+off,NULL,0); #endif if (off) vec = OPENSSL_ia32_cpuid()&~vec; }