command.c: cast members of struct timeval to long unsigned
[paraslash.git] / recv.c
diff --git a/recv.c b/recv.c
index ba1cfd2..95711f1 100644 (file)
--- a/recv.c
+++ b/recv.c
@@ -85,7 +85,7 @@ recv:
        timeout.tv_usec = 1000 * 1000;
        max = -1;
        ret = r->pre_select(&rn, &rfds, &wfds, &timeout);
-       max = MAX(max, ret);
+       max = PARA_MAX(max, ret);
 
        PARA_DEBUG_LOG("timeout: %lums\n", tv2ms(&timeout));
        ret = para_select(max + 1, &rfds, &wfds, &timeout);