Code cleanup

This commit is contained in:
Adrien Gallouët
2017-01-04 14:24:30 +00:00
parent c591a4d3cc
commit 8c8715187b
5 changed files with 33 additions and 32 deletions

View File

@@ -386,8 +386,8 @@ main(int argc, char **argv)
size_t size = 0;
while (sizeof(buf) - size >= gt.mtu) {
const ssize_t r = tun_read(tun_fd, &buf[size],
sizeof(buf) - size);
const int r = tun_read(tun_fd, &buf[size],
sizeof(buf) - size);
if (r <= 0 || r > gt.mtu)
break;