commit - afef7dee82264a5c0981ac66584c8888a1329827
commit + 774c6cda4dcbdaf230973d38d18c3609d7135b06
blob - 84fe1e4ca929abcc269572a97df9a8c299c76c1d
blob + 5f998985f6befe5dc83ae3eed95b3f3b7da4126d
--- src/ngircd/conn-func.c
+++ src/ngircd/conn-func.c
#include "portab.h"
-static char UNUSED id[] = "$Id: conn-func.c,v 1.6 2005/06/12 16:32:17 alex Exp $";
+static char UNUSED id[] = "$Id: conn-func.c,v 1.7 2005/07/07 18:39:45 fw Exp $";
#include "imp.h"
#include <assert.h>
assert( Idx > NONE );
#ifdef ZLIB
- if( My_Connections[Idx].options & CONN_ZIP ) return My_Connections[Idx].zip.wdatalen;
+ if( My_Connections[Idx].options & CONN_ZIP )
+ return array_bytes(&My_Connections[Idx].zip.wbuf);
else
#endif
- return My_Connections[Idx].wdatalen;
+ return array_bytes(&My_Connections[Idx].wbuf);
} /* Conn_SendQ */
assert( Idx > NONE );
#ifdef ZLIB
- if( My_Connections[Idx].options & CONN_ZIP ) return My_Connections[Idx].zip.rdatalen;
+ if( My_Connections[Idx].options & CONN_ZIP )
+ return array_bytes(&My_Connections[Idx].zip.rbuf);
else
#endif
- return My_Connections[Idx].rdatalen;
+ return array_bytes(&My_Connections[Idx].rbuf);
} /* Conn_RecvQ */