Commit bd5cb9e9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

This is C89, not C++; move FD_ZERO and FD_SET statements into the main

body of the code.
parent 2f65b4ad
......@@ -80,8 +80,6 @@ int
main(void)
{
fd_set r;
FD_ZERO(&r);
FD_SET(0, &r);
struct timeval timeout;
#ifdef HAVE_STRUCT_SIGACTION
struct sigaction act;
......@@ -123,6 +121,8 @@ main(void)
}
#endif
FD_ZERO(&r);
FD_SET(0, &r);
timeout.tv_sec = 5;
timeout.tv_usec = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment