From: Gisle Vanem Date: Sun, 2 Oct 2005 18:22:45 +0000 (+0000) Subject: Avoid gcc warning "dereferencing type-punned pointer X-Git-Tag: upstream/7.37.1~10866 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06c3bec65d62e96dd0c41241a6a584de8c677704;p=platform%2Fupstream%2Fcurl.git Avoid gcc warning "dereferencing type-punned pointer will break strict-aliasing rules". --- diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index 365eab1..3e993cb 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); }