diff --git a/examples/cluster.c b/examples/cluster.c index ad4366d..1b9e904 100644 --- a/examples/cluster.c +++ b/examples/cluster.c @@ -388,11 +388,6 @@ int main(int argc, char **argv) { .tv_usec = 0 }; - struct timeval timeout = { - .tv_sec = 0, - .tv_usec = 250000 - }; - cairo_t *fg, *bg; if ((can_if = hexagram_can_if_open("vcan0")) == NULL) @@ -433,6 +428,11 @@ int main(int argc, char **argv) { FD_SET(fd2, &rfds); while (1) { + struct timeval timeout = { + .tv_sec = 0, + .tv_usec = 250000 + }; + int pending; (void)gettimeofday(&now, NULL);