Mercurial > emacs
changeset 63038:ac1cd1222417
(sys_setsockopt): Change arg 4 to `const void *'. In the
call to pfn_setsockopt, cast optval to `const char *'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 05 Jun 2005 19:13:37 +0000 |
parents | e7db86688ce6 |
children | 3b68a0c4a187 |
files | src/w32.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32.c Sun Jun 05 17:19:55 2005 +0000 +++ b/src/w32.c Sun Jun 05 19:13:37 2005 +0000 @@ -3207,7 +3207,7 @@ } 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 @@ 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;