]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-write.c
Remove imp.h and exp.h header files
[ngircd-alex.git] / src / ngircd / irc-write.c
index 25cecaff8e90c13e350189dad7e39db2883c0932..c6a3dce23c00b42a7363a0857c162502e4247dd3 100644 (file)
@@ -16,7 +16,6 @@
  * Sending IRC commands over the network
  */
 
-#include "imp.h"
 #include <assert.h>
 #ifdef PROTOTYPES
 #      include <stdarg.h>
@@ -30,7 +29,6 @@
 #include "conn-func.h"
 #include "channel.h"
 
-#include "exp.h"
 #include "irc-write.h"
 
 #define SEND_TO_USER 1
@@ -70,7 +68,7 @@ va_dcl
 #else
        va_start(ap);
 #endif
-       vsnprintf(buffer, 1000, Format, ap);
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end(ap);
 
        IRC_SetPenalty(Client, 2);
@@ -107,7 +105,7 @@ va_dcl
 #else
        va_start(ap);
 #endif
-       vsnprintf(buffer, 1000, Format, ap);
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end(ap);
 
        return IRC_WriteStrClientPrefix(Client, Client_ThisServer(),
@@ -148,7 +146,7 @@ va_dcl
 #else
        va_start( ap );
 #endif
-       vsnprintf( buffer, 1000, Format, ap );
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end( ap );
 
        return Conn_WriteStr(Client_Conn(Client_NextHop(Client)), ":%s %s",
@@ -190,7 +188,7 @@ va_dcl
 #else
        va_start( ap );
 #endif
-       vsnprintf( buffer, 1000, Format, ap );
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end( ap );
 
        IRC_WriteStrChannelPrefix(Client, Chan, Client_ThisServer(),
@@ -239,7 +237,7 @@ va_dcl
 #else
        va_start( ap  );
 #endif
-       vsnprintf( buffer, 1000, Format, ap );
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end( ap );
 
        Conn_ClearFlags( );
@@ -296,7 +294,7 @@ va_dcl
 #else
        va_start( ap );
 #endif
-       vsnprintf( buffer, 1000, Format, ap );
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end( ap );
 
        IRC_WriteStrServersPrefix(ExceptOf, Client_ThisServer(), "%s", buffer);
@@ -333,7 +331,7 @@ va_dcl
 #else
        va_start( ap );
 #endif
-       vsnprintf( buffer, 1000, Format, ap );
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end( ap );
 
        IRC_WriteStrServersPrefixFlag( ExceptOf, Prefix, '\0', "%s", buffer );
@@ -373,7 +371,7 @@ va_dcl
 #else
        va_start( ap );
 #endif
-       vsnprintf( buffer, 1000, Format, ap );
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end( ap );
 
        IRC_WriteStrServersPrefixFlag_CB(ExceptOf, Prefix, Flag,
@@ -451,7 +449,7 @@ va_dcl
 #else
        va_start( ap );
 #endif
-       vsnprintf( buffer, 1000, Format, ap );
+       vsnprintf(buffer, sizeof(buffer), Format, ap);
        va_end( ap );
 
        Conn_ClearFlags( );
@@ -513,7 +511,7 @@ va_dcl
 #else
        va_start(ap);
 #endif
-       vsnprintf(msg, 1000, Format, ap);
+       vsnprintf(msg, sizeof(msg), Format, ap);
        va_end(ap);
 
        for (to=Client_First(); to != NULL; to=Client_Next(to)) {