mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-08 01:13:16 +00:00
added explicit typecast on zlib-calls to silence compiler warnings
This commit is contained in:
parent
3b8ca164ab
commit
7994402806
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue