added explicit typecast on zlib-calls to silence compiler warnings

This commit is contained in:
Bjorn Andersson 2007-02-10 23:23:08 +00:00
parent 3b8ca164ab
commit 7994402806

View File

@ -140,7 +140,7 @@ tunnel_tun(int tun_fd, int dns_fd)
outlen = sizeof(out); outlen = sizeof(out);
inlen = read; inlen = read;
compress2(out, &outlen, in, inlen, 9); compress2((uint8_t*)out, &outlen, (uint8_t*)in, inlen, 9);
memcpy(activepacket, out, MIN(outlen, sizeof(activepacket))); memcpy(activepacket, out, MIN(outlen, sizeof(activepacket)));
lastlen = 0; lastlen = 0;
@ -166,7 +166,7 @@ tunnel_dns(int tun_fd, int dns_fd)
outlen = sizeof(out); outlen = sizeof(out);
inlen = read; inlen = read;
if (uncompress(out, &outlen, in, inlen) != Z_OK) if (uncompress((uint8_t*)out, &outlen, (uint8_t*)in, inlen) != Z_OK)
return -1; return -1;
write_tun(tun_fd, out, outlen); write_tun(tun_fd, out, outlen);