aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dumpcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index e7dd68a645..12ebc27125 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1824,7 +1824,7 @@ cap_open_socket(char *pipename, pcap_options *pcap_opts, char *errmsg, int errms
sa.sin_family = AF_INET;
sa.sin_port = htons((u_short)port);
- if (((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) ||
+ if (((fd = (int)socket(AF_INET, SOCK_STREAM, 0)) < 0) ||
(connect(fd, (struct sockaddr *)&sa, sizeof(sa)) < 0)) {
g_snprintf(errmsg, errmsgl,
"The capture session could not be initiated due to\n"