Add another cast to make Windows buildbots happy.

svn path=/trunk/; revision=43155
This commit is contained in:
Chris Maynard 2012-06-08 13:23:14 +00:00
parent 14c0648ce4
commit 74f85a07c0

View File

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