cryptlib.c: sscanf warning.
authorAndy Polyakov <appro@openssl.org>
Sun, 15 Jan 2012 17:13:57 +0000 (17:13 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 15 Jan 2012 17:13:57 +0000 (17:13 +0000)
crypto/cryptlib.c

index ec8abdce9aeaa5e8dca3b1637bec898385d406f7..2341b7b112617f3dce89e9bf592614dd2d478075 100644 (file)
@@ -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;
     }