]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix MinGW build error: cast between incompatible function types from 'FARPROC' [...
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 29 Nov 2021 09:49:21 +0000 (10:49 +0100)
committerSimon McVittie <smcv@collabora.com>
Mon, 29 Nov 2021 15:20:10 +0000 (15:20 +0000)
The build error occurred in 'dbus/dbus-sysdeps-win.c:129:43:

Fixes #355

dbus/dbus-sysdeps-win.c

index 32126bbc8071817cce112f1f3fff51c6b80708dd..e9de9340092d5c22590990bf0c3cce68e9e056c9 100644 (file)
@@ -126,7 +126,7 @@ load_ex_ip_helper_procedures(void)
       return FALSE;
     }
 
-  lpfnAllocateAndGetTcpExTableFromStack = (ProcAllocateAndGetTcpExtTableFromStack)GetProcAddress (hModule, "AllocateAndGetTcpExTableFromStack");
+  lpfnAllocateAndGetTcpExTableFromStack = (ProcAllocateAndGetTcpExtTableFromStack) (void (*)(void))GetProcAddress (hModule, "AllocateAndGetTcpExTableFromStack");
   if (lpfnAllocateAndGetTcpExTableFromStack == NULL)
     {
       _dbus_verbose ("could not find function AllocateAndGetTcpExTableFromStack in iphlpapi.dll\n");