// Now we have to create a new thread to receive packets
#ifdef _WIN32
- *threaddata = _beginthreadex(NULL, 0, daemon_thrdatamain, (void *) session, NULL, 0);
+ *threaddata = (HANDLE)_beginthreadex(NULL, 0, daemon_thrdatamain, (void *) session, NULL, 0);
if (*threaddata == 0)
{
pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error creating the data thread");
activelist[i].ai_family = mainhints.ai_family;
#ifdef _WIN32
- threadId = _beginthreadex(NULL, 0, main_active,
+ threadId = (HANDLE)_beginthreadex(NULL, 0, main_active,
(void *)&activelist[i], 0, NULL);
if (threadId == 0)
{
*socktemp = sockmain;
#ifdef _WIN32
- threadId = _beginthreadex(NULL, 0, main_passive,
+ threadId = (HANDLE)_beginthreadex(NULL, 0, main_passive,
(void *) socktemp, 0, NULL);
if (threadId == 0)
{