- irc.c: made IRC_RAW_LEN an unsigned int
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 25 Dec 2014 17:23:34 +0000 (17:23 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 25 Dec 2014 17:23:34 +0000 (17:23 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5125 82007160-df01-0410-b94d-b575c5fd34c7

src/irc.c

index c24ed5ab1144c07264bec9834d2a77152d576c7b..9c2088837a1be7989ee2b32b01e8f4a348859a4b 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -101,7 +101,7 @@ extern struct cnode *nc_head;
 
 char                 IRC_RAW[MSGLENMAX];         /* Buffer to read data into              */
 char                 IRC_SENDBUFF[MSGLENMAX];    /* Send buffer                           */
-int                  IRC_RAW_LEN    = 0;         /* Position of IRC_RAW                   */
+static unsigned int  IRC_RAW_LEN    = 0;         /* Position of IRC_RAW                   */
 
 int                  IRC_FD         = 0;        /* File descriptor for IRC client        */
 
@@ -522,7 +522,7 @@ irc_parse(void)
 
   parc = 1;
 
-  if (IRC_RAW_LEN <= 0)
+  if (IRC_RAW_LEN == 0)
     return;
 
   if (OPT_DEBUG >= 2)