Skip to content

Commit

Permalink
Move dummy_fd_set into Select
Browse files Browse the repository at this point in the history
Now that we have select.cc.
  • Loading branch information
kmcallister authored and keithw committed May 16, 2012
1 parent 768d4ce commit 7fc1aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/util/select.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
#include "select.h"

Select *Select::instance = NULL;

fd_set Select::dummy_fd_set;
3 changes: 1 addition & 2 deletions src/util/select.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include <sys/types.h>
#include <unistd.h>

static fd_set dummy_fd_set;

/* Convenience wrapper for select(2). */
class Select {
public:
Expand Down Expand Up @@ -102,6 +100,7 @@ class Select {

private:
int max_fd;
static fd_set dummy_fd_set;
fd_set all_fds, read_fds, error_fds;
};

Expand Down

0 comments on commit 7fc1aa3

Please sign in to comment.