Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
bd5cb9e9
Commit
bd5cb9e9
authored
Oct 26, 2002
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/testsuite/test-select.c
View file @
bd5cb9e9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment