Permalink
Browse files

Fix issue in sample code

  • Loading branch information...
1 parent 6e4838b commit 96fd5b6584568cd6e6ee24fa59bf10e4ac0cf303 @t3dbundy t3dbundy committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 01_intro.txt
View
2 01_intro.txt
@@ -170,7 +170,7 @@ while (i_still_want_to_read()) {
/* Add all of the interesting fds to readset */
for (i=0; i < n_sockets; ++i) {
if (fd[i]>maxfd) maxfd = fd[i];
- FD_SET(i, &readset);
+ FD_SET(fd[i], &readset);
}
/* Wait until one or more fds are ready to read */

0 comments on commit 96fd5b6

Please sign in to comment.