diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2015-05-19 18:13:20 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2015-05-19 18:13:20 -0700 |
| commit | c7eb5f0c81d32f26d0cca47f80d9d9d5e1307aca (patch) | |
| tree | 34911b7ad734d3aabd1fe7c016e97b8c2ee88a56 /service | |
| parent | 68cb7ad4cdeac23988bc63cd65f91d8b540ff47d (diff) | |
| download | infinitytier-c7eb5f0c81d32f26d0cca47f80d9d9d5e1307aca.tar.gz infinitytier-c7eb5f0c81d32f26d0cca47f80d9d9d5e1307aca.zip | |
Windows build warning removal, be more defensive in Windows tap driver code, and clean up service start/stop in installer.
Diffstat (limited to 'service')
| -rw-r--r-- | service/OneService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<TcpConnection *>(*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()) { |
