From a299eae21bf2d2e20c64424f5be951e4bb0be561 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 21 Oct 2005 18:11:22 +0000 Subject: [PATCH] SuSE compile fixes --- mbcico/hydra.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbcico/hydra.c b/mbcico/hydra.c index 0992b9f7..af20eb22 100644 --- a/mbcico/hydra.c +++ b/mbcico/hydra.c @@ -558,7 +558,7 @@ int hydra_batch(int role, file_list *to_send) static char txzbuf[H_ZIPBUFLEN], rxzbuf[H_ZIPBUFLEN]; unsigned int rxzlen, txzlen; /* length of receive/transmit compressed buffer */ int rcz, cmpblksize; - unsigned long destLen; + uLongf destLen; #endif Syslog('h', "Hydra: resettimers"); @@ -1041,7 +1041,7 @@ int hydra_batch(int role, file_list *to_send) #ifdef HAVE_ZLIB_H if (compstate == HCMP_GZ) { txzlen = H_ZIPBUFLEN - 4; - destLen = (unsigned long)txzlen; + destLen = (uLongf)txzlen; rcz = compress2(txzbuf + 4, &destLen, txbuf + 4, txlen, 9); txzlen = (int)destLen; if (rcz == Z_OK) { @@ -1502,7 +1502,7 @@ int hydra_batch(int role, file_list *to_send) */ if (pkttype == HPKT_ZIPDATA) { rxzlen = H_ZIPBUFLEN; - destLen = (unsigned long)rxzlen; + destLen = (uLongf)rxzlen; rcz = uncompress(rxzbuf, &destLen, rxbuf + 4, rxlen - 4); rxzlen = (int)destLen; if (rcz == Z_OK) {