Update of /cvsroot/libsnet/libsnet
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19892
Modified Files:
snet.c
Log Message:
Eliminated warnings when building without zlib.
Index: snet.c
===================================================================
RCS file: /cvsroot/libsnet/libsnet/snet.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** snet.c 2 May 2006 15:08:06 -0000 1.52
--- snet.c 4 May 2006 15:01:54 -0000 1.53
***************
*** 646,650 ****
--- 646,652 ----
int level;
{
+ #ifdef HAVE_ZLIB
int len = 0;
+ #endif /* HAVE_ZLIB */
if ( sn->sn_flag & SNET_ZLIB ) {
***************
*** 704,708 ****
--- 706,712 ----
struct timeval *tv;
{
+ #ifdef HAVE_ZLIB
ssize_t rr;
+ #endif /* HAVE_ZLIB */
if (( sn->sn_flag & SNET_ZLIB ) == 0 ) {
***************
*** 743,748 ****
--- 747,754 ----
struct timeval *tv;
{
+ #ifdef HAVE_ZLIB
char cobuf[ 8192 ];
size_t zlen;
+ #endif /* HAVE_ZLIB */
if (( sn->sn_flag & SNET_ZLIB ) == 0 ) {
|