mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
libeventserver: silence compiler warnings
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2b355da028
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-09 (Thu, 09 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -56,7 +56,7 @@ void CEventServer::unRegisterEvent2(const unsigned int eventID, const unsigned i
|
|||||||
void CEventServer::unRegisterEvent(const int fd)
|
void CEventServer::unRegisterEvent(const int fd)
|
||||||
{
|
{
|
||||||
commandUnRegisterEvent msg;
|
commandUnRegisterEvent msg;
|
||||||
read(fd, &msg, sizeof(msg));
|
ssize_t ignored __attribute__((unused)) = read(fd, &msg, sizeof(msg));
|
||||||
unRegisterEvent2(msg.eventID, msg.clientID);
|
unRegisterEvent2(msg.eventID, msg.clientID);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,13 +103,13 @@ bool CEventServer::sendEvent2Client(const unsigned int eventID, const initiators
|
|||||||
head.initiatorID = initiatorID;
|
head.initiatorID = initiatorID;
|
||||||
head.dataSize = eventbodysize;
|
head.dataSize = eventbodysize;
|
||||||
/*int written = */
|
/*int written = */
|
||||||
write(sock_fd, &head, sizeof(head));
|
ssize_t ignored __attribute__((unused)) = write(sock_fd, &head, sizeof(head));
|
||||||
// printf ("[eventserver]: sent 0x%x - following eventbody= %d\n", written, eventbodysize );
|
// printf ("[eventserver]: sent 0x%x - following eventbody= %d\n", written, eventbodysize );
|
||||||
|
|
||||||
if(eventbodysize!=0)
|
if(eventbodysize!=0)
|
||||||
{
|
{
|
||||||
/*written = */
|
/*written = */
|
||||||
write(sock_fd, eventbody, eventbodysize);
|
ignored = write(sock_fd, eventbody, eventbodysize);
|
||||||
// printf ("[eventserver]: eventbody sent 0x%x - peventbody= %x eventbody= %x\n", written, (unsigned)eventbody, *(unsigned*)eventbody );
|
// printf ("[eventserver]: eventbody sent 0x%x - peventbody= %x eventbody= %x\n", written, (unsigned)eventbody, *(unsigned*)eventbody );
|
||||||
}
|
}
|
||||||
close(sock_fd);
|
close(sock_fd);
|
||||||
|
Reference in New Issue
Block a user