Skip to content

Commit

Permalink
Add some casts to eliminate warnings with Visual C++ 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Jul 11, 2016
1 parent 1cecd8e commit 65e5687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ int initWinsockPointers() {
if (!s) {
return 0;
}
if (!initPointer(s, &lpAcceptEx, guid1))
if (!initPointer(s, (void **)&lpAcceptEx, guid1))
{
return 0;
}
if (!initPointer(s, &lpGetAcceptExSockaddrs, guid2)) {
if (!initPointer(s, (void **)&lpGetAcceptExSockaddrs, guid2)) {
return 0;
}
if (!initPointer(s, &lpConnectEx, guid3)) {
if (!initPointer(s, (void **)&lpConnectEx, guid3)) {
return 0;
};
/*initPointer(s, &lpTransmitFile, guid4);*/
Expand Down

0 comments on commit 65e5687

Please sign in to comment.