From 1bcb5e0cc1fabb245928e20e4b808f10d98174b1 Mon Sep 17 00:00:00 2001 From: Akash Date: Wed, 29 Jun 2016 23:35:23 +0530 Subject: [PATCH] dev9ghzdrk: Clean up warnings on MSVC pcap_io: cast ``pcap_io_running`` to bool. --- plugins/dev9ghzdrk/pcap_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dev9ghzdrk/pcap_io.cpp b/plugins/dev9ghzdrk/pcap_io.cpp index fc7306c835..00cb031ca1 100644 --- a/plugins/dev9ghzdrk/pcap_io.cpp +++ b/plugins/dev9ghzdrk/pcap_io.cpp @@ -435,7 +435,7 @@ bool PCAPAdapter::blocks() } bool PCAPAdapter::isInitialised() { - return pcap_io_running; + return !!pcap_io_running; } //gets a packet.rv :true success bool PCAPAdapter::recv(NetPacket* pkt)