Skip to content
Snippets Groups Projects
Commit a1989c82 authored by Steven Murray's avatar Steven Murray Committed by Steven Murray
Browse files

ISO C90 forbids mixed declarations and code

parent 665f0101
Branches
Tags
No related merge requests found
......@@ -344,14 +344,13 @@ int _net_isclosed(int fd)
{
fd_set rset;
struct timeval tv;
char buf[1];
FD_ZERO(&rset);
FD_SET(fd,&rset);
tv.tv_sec = 0;
tv.tv_usec = 0;
char buf[1];
/* Will return > 0 if the descriptor is closed */
if (select(fd + 1, NULL, &rset, NULL, &tv) > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment