Permalink
Browse files

[libcmyth] Match upstream setting of default value for the timeval fo…

…r wider compiler support.
  • Loading branch information...
1 parent 648718a commit 4986553ab1972b41608152c63796c437a7d4aa23 David Teirney committed Jun 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/cmyth/libcmyth/connection.c
@@ -953,14 +953,15 @@ int
cmyth_conn_check_block(cmyth_conn_t conn, unsigned long size)
{
fd_set check;
- struct timeval timeout = {0,0};
+ struct timeval timeout;
int length;
int err = 0;
unsigned long sent;
if (!conn) {
return -EINVAL;
}
+ timeout.tv_sec = timeout.tv_usec = 0;
FD_ZERO(&check);
FD_SET(conn->conn_fd, &check);
if (select((int)conn->conn_fd + 1, &check, NULL, NULL, &timeout) < 0) {

0 comments on commit 4986553

Please sign in to comment.