From c7eb5f0c81d32f26d0cca47f80d9d9d5e1307aca Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 19 May 2015 18:13:20 -0700 Subject: Windows build warning removal, be more defensive in Windows tap driver code, and clean up service start/stop in installer. --- service/OneService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/OneService.cpp') diff --git a/service/OneService.cpp b/service/OneService.cpp index fc2fba41..a566449f 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -523,7 +523,7 @@ public: { TcpConnection *tc = reinterpret_cast(*uptr); if (tc->writeBuf.length()) { - long sent = _phy.tcpSend(sock,tc->writeBuf.data(),tc->writeBuf.length(),true); + long sent = (long)_phy.tcpSend(sock,tc->writeBuf.data(),(unsigned long)tc->writeBuf.length(),true); if (sent > 0) { tc->lastActivity = OSUtils::now(); if ((unsigned long)sent == (unsigned long)tc->writeBuf.length()) { -- cgit v1.2.3