Fix more warnings
This commit is contained in:
parent
3fddfc5557
commit
8dc304bcd3
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue