mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
Investigated and fixed up more compiler warnings. Now builds clean on gcc7.3
This commit is contained in:
@@ -476,7 +476,8 @@ void channel_massmode(const Chan *chan, char *pattern, int filtmode, char mode,
|
||||
{
|
||||
if ((Strlen2(deopstring,burst)) >= MSGLEN-2) // burst is never NULL
|
||||
{
|
||||
write(current->sock,burst,strlen(burst));
|
||||
if (write(current->sock,burst,strlen(burst)) == -1)
|
||||
return;
|
||||
#ifdef DEBUG
|
||||
debug("(channel_massmode)\n%s\n",burst);
|
||||
#endif /* DEBUG */
|
||||
@@ -489,7 +490,8 @@ void channel_massmode(const Chan *chan, char *pattern, int filtmode, char mode,
|
||||
|
||||
if (strlen(burst))
|
||||
{
|
||||
write(current->sock,burst,strlen(burst));
|
||||
if (write(current->sock,burst,strlen(burst)) == -1)
|
||||
return;
|
||||
#ifdef DEBUG
|
||||
debug("(...)\n%s\n",burst);
|
||||
#endif /* DEBUG */
|
||||
|
||||
Reference in New Issue
Block a user