Investigated and fixed up more compiler warnings. Now builds clean on gcc7.3

This commit is contained in:
MadCamel
2018-04-14 10:24:41 -04:00
parent cc752e9ccd
commit 2f910d1725
4 changed files with 20 additions and 9 deletions

View File

@@ -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 */