mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
(sys_setsockopt): Change arg 4 to `const void *'. In the
call to pfn_setsockopt, cast optval to `const char *'.
This commit is contained in:
parent
98f4a29ed6
commit
a5a389bb74
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user