Skip to content

Commit

Permalink
Fix another compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmah888 committed May 23, 2017
1 parent dc74346 commit 7a15a7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ timeout_connect(int s, const struct sockaddr *name, socklen_t namelen,
int flags, optval;
int ret;

flags = 0;
if (timeout != -1) {
flags = fcntl(s, F_GETFL, 0);
if (fcntl(s, F_SETFL, flags | O_NONBLOCK) == -1)
Expand Down

0 comments on commit 7a15a7a

Please sign in to comment.