mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
basicserver.cpp and zapitclient.cpp 2.try to fix compiler warnings, suggested by Seife
Origin commit data
------------------
Branch: ni/coolstream
Commit: 81d2228ddb
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-13 (Mon, 13 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -132,7 +132,7 @@ bool CBasicServer::parse(bool (parse_command)(CBasicMessage::Header &rmsg, int c
|
||||
memset(&rmsg, 0, sizeof(rmsg));
|
||||
ssize_t r = read(conn_fd, &rmsg, sizeof(rmsg));
|
||||
|
||||
if (r && rmsg.version == version)
|
||||
if (r == sizeof(rmsg) && rmsg.version == version)
|
||||
parse_another_command = parse_command(rmsg, conn_fd);
|
||||
else
|
||||
printf("[%s] Command ignored: cmd %x version %d received - server cmd version is %d\n", name.c_str(), rmsg.cmd, rmsg.version, version);
|
||||
|
Reference in New Issue
Block a user