Fix more warnings

This commit is contained in:
Cameron Gutman
2020-12-05 23:30:25 -06:00
parent 3fddfc5557
commit 8dc304bcd3
3 changed files with 3 additions and 3 deletions

View File

@@ -395,7 +395,7 @@ static bool sendMessageTcp(short ptype, short paylen, const void* payload) {
err = send(ctlSock, (char*) packet, sizeof(*packet) + paylen, 0);
free(packet);
if (err != sizeof(*packet) + paylen) {
if (err != (SOCK_RET)(sizeof(*packet) + paylen)) {
return false;
}