diff options
| author | 2021-04-04 23:42:15 +0100 | |
|---|---|---|
| committer | 2021-04-04 23:42:15 +0100 | |
| commit | 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch) | |
| tree | f5a81d03f572392e7547d58f979fdd488de6ff0b /src/inspsocket.cpp | |
| parent | Remove the unused ExitCodes array. (diff) | |
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 893bc304a..0f12aebbe 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -294,7 +294,7 @@ void StreamSocket::FlushSendQ(SendQueue& sq) rv = SocketEngine::WriteV(this, iovecs, bufcount); } - if (rv == (int)sq.bytes()) + if (rv == static_cast<int>(sq.bytes())) { // it's our lucky day, everything got written out. Fast cleanup. // This won't ever happen if the number of buffers got capped. @@ -311,7 +311,7 @@ void StreamSocket::FlushSendQ(SendQueue& sq) while (rv > 0 && !sq.empty()) { const SendQueue::Element& front = sq.front(); - if (front.length() <= (size_t)rv) + if (front.length() <= static_cast<size_t>(rv)) { // this string got fully written out rv -= front.length(); @@ -518,7 +518,7 @@ void StreamSocket::AddIOHook(IOHook* newhook) return; } - IOHookMiddle* lasthook; + IOHookMiddle* lasthook = nullptr; while (curr) { lasthook = IOHookMiddle::ToMiddleHook(curr); |
