- irc.c: use static keyword where appropriate; removed unused IRC_SENDBUFF
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 25 Dec 2014 17:59:12 +0000 (17:59 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 25 Dec 2014 17:59:12 +0000 (17:59 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5130 82007160-df01-0410-b94d-b575c5fd34c7

src/irc.c

index 9c2088837a1be7989ee2b32b01e8f4a348859a4b..1fa6af70ab75a356df791f1229b008ce18c0a509 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -99,20 +99,18 @@ extern struct cnode *nc_head;
  * again so global scope is given.
  */
 
-char                 IRC_RAW[MSGLENMAX];         /* Buffer to read data into              */
-char                 IRC_SENDBUFF[MSGLENMAX];    /* Send buffer                           */
+static char          IRC_RAW[MSGLENMAX];         /* Buffer to read data into              */
 static unsigned int  IRC_RAW_LEN    = 0;         /* Position of IRC_RAW                   */
+static int           IRC_FD         = 0;         /* File descriptor for IRC client        */
 
-int                  IRC_FD         = 0;        /* File descriptor for IRC client        */
+static struct bopm_sockaddr IRC_SVR;             /* Sock Address Struct for IRC server    */
+static struct bopm_ircaddr  IRC_LOCAL;           /* Sock Address Struct for Bind          */
 
-struct bopm_sockaddr IRC_SVR;                   /* Sock Address Struct for IRC server    */
-struct bopm_ircaddr  IRC_LOCAL;                 /* Sock Address Struct for Bind          */
+static fd_set        IRC_READ_FDSET;             /* fd_set for IRC (read) data for select()*/
+static struct timeval IRC_TIMEOUT;               /* timeval struct for select() timeout   */
 
-fd_set               IRC_READ_FDSET;             /* fd_set for IRC (read) data for select()*/
-struct timeval       IRC_TIMEOUT;                /* timeval struct for select() timeout   */
-
-time_t               IRC_LAST = 0;               /* Last full line of data from irc server*/
-time_t               IRC_LASTRECONNECT = 0;      /* Time of last reconnection */
+static time_t IRC_LAST = 0;                      /* Last full line of data from irc server*/
+static time_t IRC_LASTRECONNECT = 0;             /* Time of last reconnection */
 
 /*
  * Table should be ordered with most occuring (or priority)