bss_dgram.c: fix compilation failure and warning on Windows with
[oweals/openssl.git] / crypto / cryptlib.c
index ec8abdce9aeaa5e8dca3b1637bec898385d406f7..c85fe5aa3d76688e3c7057e3213cc99acdf2388a 100644 (file)
@@ -147,9 +147,9 @@ void OPENSSL_cpuid_setup(void)
     if ((env=getenv("OPENSSL_ia32cap"))) {
        int off = (env[0]=='~')?1:0;
 #if defined(_WIN32)
-       if (!sscanf(env+off,"%I64i",&vec)) vec = strtoul(env+off,NULL,0);
+       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;
     }