summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2013-04-27 19:17:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-28 19:27:04 (GMT)
commit1c31596a4b029e51cef1c520f32a3ecfbdea3c0a (patch)
treeb812c9e1a9002fede759d71fa496cfedfd7659d8 /compat
parent9c3b051f931af9e3bcc765a4c83426e3be7de7f1 (diff)
downloadgit-1c31596a4b029e51cef1c520f32a3ecfbdea3c0a.zip
git-1c31596a4b029e51cef1c520f32a3ecfbdea3c0a.tar.gz
git-1c31596a4b029e51cef1c520f32a3ecfbdea3c0a.tar.bz2
compat/poll/poll.c: Fix a sparse warning
Sparse issues an 'Using plain integer as NULL pointer' warning when passing the constant '0' as the second parameter in the call to the WSAEventSelect() function. The function parameter has a pointer type (WSAEVENT, aka HANDLE, aka void *) so that, in order to suppress the warning, we simply pass NULL for that parameter in the function call expression. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/poll/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/poll/poll.c b/compat/poll/poll.c
index 7d226ec..4410310 100644
--- a/compat/poll/poll.c
+++ b/compat/poll/poll.c
@@ -576,7 +576,7 @@ restart:
{
/* It's a socket. */
WSAEnumNetworkEvents ((SOCKET) h, NULL, &ev);
- WSAEventSelect ((SOCKET) h, 0, 0);
+ WSAEventSelect ((SOCKET) h, NULL, 0);
/* If we're lucky, WSAEnumNetworkEvents already provided a way
to distinguish FD_READ and FD_ACCEPT; this saves a recv later. */