mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Avoid compilation warning in emacsclient.c
* lib-src/emacsclient.c (set_tcp_socket): Avoid compilation warning in MS-Windows build.
This commit is contained in:
parent
652dabfff6
commit
2b1bc70105
1 changed files with 3 additions and 1 deletions
|
|
@ -1001,7 +1001,9 @@ set_tcp_socket (const char *local_server_file)
|
|||
return INVALID_SOCKET;
|
||||
}
|
||||
|
||||
setsockopt (s, SOL_SOCKET, SO_LINGER, &l_arg, sizeof l_arg);
|
||||
/* The cast to 'const char *' is to avoid a compiler warning when
|
||||
compiling for MS-Windows sockets. */
|
||||
setsockopt (s, SOL_SOCKET, SO_LINGER, (const char *) &l_arg, sizeof l_arg);
|
||||
|
||||
/* Send the authentication. */
|
||||
auth_string[AUTH_KEY_LENGTH] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue