Fix some more UN*X-vs-Windows issues.

Change-Id: Ie9ad31289f0572a7e7249fcb3305849673536f05
Reviewed-on: https://code.wireshark.org/review/19908
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-02-01 10:17:48 -08:00
parent ed6c961441
commit c46ea01374
1 changed files with 3 additions and 3 deletions

View File

@ -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;