projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bss_dgram.c: fix compilation failure and warning on Windows with
[oweals/openssl.git]
/
crypto
/
cryptlib.c
diff --git
a/crypto/cryptlib.c
b/crypto/cryptlib.c
index ec8abdce9aeaa5e8dca3b1637bec898385d406f7..c85fe5aa3d76688e3c7057e3213cc99acdf2388a 100644
(file)
--- a/
crypto/cryptlib.c
+++ b/
crypto/cryptlib.c
@@
-147,9
+147,9
@@
void OPENSSL_cpuid_setup(void)
if ((env=getenv("OPENSSL_ia32cap"))) {
int off = (env[0]=='~')?1:0;
#if defined(_WIN32)
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
#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;
}
#endif
if (off) vec = OPENSSL_ia32_cpuid()&~vec;
}