]> git.sesse.net Git - vlc/commitdiff
* Fix implementation of net_Close. it returns void, not int (like close).
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 27 Feb 2007 01:30:26 +0000 (01:30 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 27 Feb 2007 01:30:26 +0000 (01:30 +0000)
include/vlc_network.h

index 6821a8a79aeec0ef7c4b88640efa1865d9b44401..2dbc0377f94fcc5387d47d0004edd6af766b80d9 100644 (file)
@@ -183,7 +183,7 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout);
 # define SHUT_RDWR SD_BOTH
 # define net_Close( fd ) closesocket ((SOCKET)fd)
 #else
-# define net_Close( fd ) close (fd)
+# define net_Close( fd ) (void)close (fd)
 #endif
 
 /* Portable network names/addresses resolution layer */