aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-10-02 18:22:45 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-10-02 18:22:45 +0000
commit06c3bec65d62e96dd0c41241a6a584de8c677704 (patch)
treeef2c082743e4f7782e20b41ce42e2e7511c53556 /lib
parente8c3bb45baa1f7b8c17d82ca7a5b0944d57b6a0d (diff)
Avoid gcc warning "dereferencing type-punned pointer
will break strict-aliasing rules".
Diffstat (limited to 'lib')
-rw-r--r--lib/http_ntlm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index 365eab104..3e993cbf5 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -458,8 +458,9 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
(PCtxtHandle,PSecBufferDesc);
HMODULE hSecur32 = GetModuleHandle("secur32.dll");
if (hSecur32 != NULL) {
- *((void**)&pCompleteAuthToken) =
- (void*)GetProcAddress(hSecur32, "CompleteAuthToken");
+ pCompleteAuthToken =
+ (SECURITY_STATUS (__stdcall *)(PCtxtHandle,PSecBufferDesc))
+ GetProcAddress(hSecur32, "CompleteAuthToken");
if( pCompleteAuthToken != NULL ) {
pCompleteAuthToken(&ntlm->c_handle, &desc);
}