Fix more warnings

This commit is contained in:
Cameron Gutman committed 2020-12-05 23:30:25 -06:00
1 parent 3fddfc5557
commit 8dc304bcd3
3 files changed
+3 -3

No files matched your search

+1 -1
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;
}