diff options
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'; |