diff options
-rw-r--r-- | sharkd_daemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sharkd_daemon.c b/sharkd_daemon.c index db34dc7072..80b24f0107 100644 --- a/sharkd_daemon.c +++ b/sharkd_daemon.c @@ -66,7 +66,7 @@ static int _use_stdinout = 0; static socket_handle_t _server_fd = -1; -static int +static socket_handle_t socket_init(char *path) { socket_handle_t fd = -1; @@ -240,10 +240,10 @@ sharkd_loop(void) STARTUPINFO si; char *exename; #endif - int fd; + socket_handle_t fd; fd = accept(_server_fd, NULL, NULL); - if (fd == -1) + if (fd == INVALID_SOCKET) { fprintf(stderr, "cannot accept(): %s\n", g_strerror(errno)); continue; |