Skip to content

Commit

Permalink
network: mingw warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelP authored and eudoxos committed Nov 30, 2023
1 parent 65041f3 commit 140e125
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/arvnetwork.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,9 @@ arv_gpollfd_prepare_all (GPollFD *fds, guint nfds){
void
arv_gpollfd_clear_one (GPollFD *fd, GSocket* socket){
WSANETWORKEVENTS wsaNetEvents;
int wsaRes;

wsaRes = WSAEnumNetworkEvents (g_socket_get_fd(socket), (WSAEVENT) fd->fd, &wsaNetEvents);
/* TODO: check return value, check wsaNetEvents for errors */
WSAEnumNetworkEvents (g_socket_get_fd(socket), (WSAEVENT) fd->fd, &wsaNetEvents);
}

void
Expand Down

0 comments on commit 140e125

Please sign in to comment.