From: Eli Zaretskii Date: Sun, 5 Jun 2005 19:13:37 +0000 (+0000) Subject: (sys_setsockopt): Change arg 4 to `const void *'. In the X-Git-Tag: emacs-pretest-22.0.90~9289 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a5a389bb745fa63b3c4299ceb69c903e47de2d6d;p=emacs.git (sys_setsockopt): Change arg 4 to `const void *'. In the call to pfn_setsockopt, cast optval to `const char *'. --- diff --git a/src/w32.c b/src/w32.c index 8707732fd6c..1bb4a91ff03 100644 --- a/src/w32.c +++ b/src/w32.c @@ -3207,7 +3207,7 @@ sys_shutdown (int s, int how) } int -sys_setsockopt (int s, int level, int optname, const char * optval, int optlen) +sys_setsockopt (int s, int level, int optname, const void * optval, int optlen) { if (winsock_lib == NULL) { @@ -3219,7 +3219,7 @@ sys_setsockopt (int s, int level, int optname, const char * optval, int optlen) if (fd_info[s].flags & FILE_SOCKET) { int rc = pfn_setsockopt (SOCK_HANDLE (s), level, optname, - optval, optlen); + (const char *)optval, optlen); if (rc == SOCKET_ERROR) set_errno (); return rc;