be more carful wrt. signed vs. unsigned argument passing
[paraslash.git] / server.c
index 7e52fa5..c25786e 100644 (file)
--- a/server.c
+++ b/server.c
@@ -328,8 +328,9 @@ err:
 
 static void init_random_seed(void)
 {
-       int fd, ret = -1, len = sizeof(unsigned int);
+       int fd, ret = -1;
        unsigned int seed;
+       size_t len = sizeof(unsigned int);
 
        fd = open("/dev/urandom", O_RDONLY);
        if (fd < 0)