Fix all warnings when compiling with -Wall -W -pedantic.
[oweals/tinc.git] / src / net.c
index d20cbff..37ae116 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -191,7 +191,7 @@ void tarpit(int fd) {
 
        pits[next_pit++] = fd;
 
-       if(next_pit >= sizeof pits / sizeof pits[0]) {
+       if(next_pit >= (int)(sizeof pits / sizeof pits[0])) {
                next_pit = 0;
        }
 }