Reduce compiler warnings on Windows
This commit is contained in:
@@ -835,7 +835,7 @@ p11_init(hx509_context context,
|
||||
goto out;
|
||||
}
|
||||
|
||||
getFuncs = dlsym(p->dl_handle, "C_GetFunctionList");
|
||||
getFuncs = (CK_C_GetFunctionList) dlsym(p->dl_handle, "C_GetFunctionList");
|
||||
if (getFuncs == NULL) {
|
||||
ret = HX509_PKCS11_LOAD;
|
||||
hx509_set_error_string(context, 0, ret,
|
||||
|
@@ -223,7 +223,7 @@ arg_printusage_i18n (struct getargs *args,
|
||||
const char *usage,
|
||||
const char *progname,
|
||||
const char *extra_string,
|
||||
char *(i18n)(const char *))
|
||||
char *(*i18n)(const char *))
|
||||
{
|
||||
size_t i, max_len = 0;
|
||||
char buf[128];
|
||||
|
@@ -104,7 +104,7 @@ arg_printusage_i18n (struct getargs *args,
|
||||
const char *usage,
|
||||
const char *progname,
|
||||
const char *extra_string,
|
||||
char *(i18n)(const char *));
|
||||
char *(*i18n)(const char *));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
free_getarg_strings (getarg_strings *);
|
||||
|
@@ -77,7 +77,7 @@ rk_getifaddrs(struct ifaddrs **ifpp)
|
||||
ZeroMemory(il, il_len);
|
||||
|
||||
if (WSAIoctl(s, SIO_GET_INTERFACE_LIST, NULL, 0,
|
||||
(LPVOID) il, il_len, &cbret,
|
||||
(LPVOID) il, (DWORD) il_len, &cbret,
|
||||
NULL, NULL) == 0) {
|
||||
il_len = cbret;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user