1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-26 15:06:04 +03:00

Use ssize_t for read variable (ticket #57)

This commit is contained in:
Erik Ekman 2009-03-28 15:55:38 +00:00 committed by Erik Ekman
parent da0de37483
commit 5dccfbecf6

View File

@ -231,7 +231,7 @@ tunnel_tun(int tun_fd, int dns_fd)
unsigned long inlen; unsigned long inlen;
char out[64*1024]; char out[64*1024];
char in[64*1024]; char in[64*1024];
size_t read; ssize_t read;
if ((read = read_tun(tun_fd, in, sizeof(in))) <= 0) if ((read = read_tun(tun_fd, in, sizeof(in))) <= 0)
return -1; return -1;