]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn-zip.c
Remove imp.h and exp.h header files
[ngircd-alex.git] / src / ngircd / conn-zip.c
index fa3a11e0a4e15b5da56ed6eb0d7c71fd77a17a0f..f9dcb68a58dbc4abe8af898b8f5833e3b031e1a3 100644 (file)
@@ -23,7 +23,6 @@
 /* enable more zlib related debug messages: */
 /* #define DEBUG_ZLIB */
 
-#include "imp.h"
 #include <assert.h>
 #include <string.h>
 #include <zlib.h>
@@ -31,9 +30,8 @@
 #include "conn.h"
 #include "conn-func.h"
 #include "log.h"
-
 #include "array.h"
-#include "exp.h"
+
 #include "conn-zip.h"
 
 
@@ -108,8 +106,8 @@ Zip_Buffer( CONN_ID Idx, const char *Data, size_t Len )
         * otherwise the zip wbuf would grow too large */
        buflen = array_bytes(&My_Connections[Idx].zip.wbuf);
        if (buflen + Len >= WRITEBUFFER_SLINK_LEN) {
-               Log(LOG_ALERT, "Zip Write Buffer overflow: %lu bytes\n", buflen + Len);
-               Conn_Close(Idx, "Zip Write buffer overflow", NULL, false);
+               Log(LOG_ALERT, "Zip Write buffer space exhausted: %lu bytes", buflen + Len);
+               Conn_Close(Idx, "Zip Write buffer space exhausted", NULL, false);
                return false;
        }
        return array_catb(&My_Connections[Idx].zip.wbuf, Data, Len);
@@ -158,7 +156,7 @@ Zip_Flush( CONN_ID Idx )
        if (out->avail_out <= 0) {
                /* Not all data was compressed, because data became
                 * bigger while compressing it. */
-               Log (LOG_ALERT, "Compression error: buffer overvlow!?");
+               Log(LOG_ALERT, "Compression error: buffer overflow!?");
                Conn_Close(Idx, "Compression error!", NULL, false);
                return false;
        }