SuSE compile fixes

This commit is contained in:
Michiel Broek 2005-10-21 18:11:22 +00:00
parent 120deb862b
commit a299eae21b

View File

@ -558,7 +558,7 @@ int hydra_batch(int role, file_list *to_send)
static char txzbuf[H_ZIPBUFLEN], rxzbuf[H_ZIPBUFLEN]; static char txzbuf[H_ZIPBUFLEN], rxzbuf[H_ZIPBUFLEN];
unsigned int rxzlen, txzlen; /* length of receive/transmit compressed buffer */ unsigned int rxzlen, txzlen; /* length of receive/transmit compressed buffer */
int rcz, cmpblksize; int rcz, cmpblksize;
unsigned long destLen; uLongf destLen;
#endif #endif
Syslog('h', "Hydra: resettimers"); Syslog('h', "Hydra: resettimers");
@ -1041,7 +1041,7 @@ int hydra_batch(int role, file_list *to_send)
#ifdef HAVE_ZLIB_H #ifdef HAVE_ZLIB_H
if (compstate == HCMP_GZ) { if (compstate == HCMP_GZ) {
txzlen = H_ZIPBUFLEN - 4; txzlen = H_ZIPBUFLEN - 4;
destLen = (unsigned long)txzlen; destLen = (uLongf)txzlen;
rcz = compress2(txzbuf + 4, &destLen, txbuf + 4, txlen, 9); rcz = compress2(txzbuf + 4, &destLen, txbuf + 4, txlen, 9);
txzlen = (int)destLen; txzlen = (int)destLen;
if (rcz == Z_OK) { if (rcz == Z_OK) {
@ -1502,7 +1502,7 @@ int hydra_batch(int role, file_list *to_send)
*/ */
if (pkttype == HPKT_ZIPDATA) { if (pkttype == HPKT_ZIPDATA) {
rxzlen = H_ZIPBUFLEN; rxzlen = H_ZIPBUFLEN;
destLen = (unsigned long)rxzlen; destLen = (uLongf)rxzlen;
rcz = uncompress(rxzbuf, &destLen, rxbuf + 4, rxlen - 4); rcz = uncompress(rxzbuf, &destLen, rxbuf + 4, rxlen - 4);
rxzlen = (int)destLen; rxzlen = (int)destLen;
if (rcz == Z_OK) { if (rcz == Z_OK) {