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