diff --git a/lib/hx509/ks_p11.c b/lib/hx509/ks_p11.c index 8258bd2e0..23f6a4826 100644 --- a/lib/hx509/ks_p11.c +++ b/lib/hx509/ks_p11.c @@ -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, diff --git a/lib/roken/getarg.c b/lib/roken/getarg.c index d182f0019..8fde712c5 100644 --- a/lib/roken/getarg.c +++ b/lib/roken/getarg.c @@ -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]; diff --git a/lib/roken/getarg.h b/lib/roken/getarg.h index 79573a0ea..1065c7c66 100644 --- a/lib/roken/getarg.h +++ b/lib/roken/getarg.h @@ -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 *); diff --git a/lib/roken/getifaddrs_w32.c b/lib/roken/getifaddrs_w32.c index 96ab497fc..ff0250baa 100644 --- a/lib/roken/getifaddrs_w32.c +++ b/lib/roken/getifaddrs_w32.c @@ -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;