diff options
| author | Eli Zaretskii | 2018-11-23 11:12:40 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-11-23 11:12:40 +0200 |
| commit | 2b1bc701052767beff77a7d6f60dea80b30ba8de (patch) | |
| tree | 678569dcd52d7516a4bd827b9aecacd3bcbb1fe5 /lib-src | |
| parent | 652dabfff6f99631f8f3d6c3a658f0b8895d48b0 (diff) | |
| download | emacs-2b1bc701052767beff77a7d6f60dea80b30ba8de.tar.gz emacs-2b1bc701052767beff77a7d6f60dea80b30ba8de.zip | |
Avoid compilation warning in emacsclient.c
* lib-src/emacsclient.c (set_tcp_socket): Avoid compilation
warning in MS-Windows build.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 9830eaecc6d..3c6215a0144 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1001,7 +1001,9 @@ set_tcp_socket (const char *local_server_file) | |||
| 1001 | return INVALID_SOCKET; | 1001 | return INVALID_SOCKET; |
| 1002 | } | 1002 | } |
| 1003 | 1003 | ||
| 1004 | setsockopt (s, SOL_SOCKET, SO_LINGER, &l_arg, sizeof l_arg); | 1004 | /* The cast to 'const char *' is to avoid a compiler warning when |
| 1005 | compiling for MS-Windows sockets. */ | ||
| 1006 | setsockopt (s, SOL_SOCKET, SO_LINGER, (const char *) &l_arg, sizeof l_arg); | ||
| 1005 | 1007 | ||
| 1006 | /* Send the authentication. */ | 1008 | /* Send the authentication. */ |
| 1007 | auth_string[AUTH_KEY_LENGTH] = '\0'; | 1009 | auth_string[AUTH_KEY_LENGTH] = '\0'; |