version 1.10, 2013/11/20 16:26:51
|
version 1.10.2.1, 2013/11/20 16:38:14
|
Line 1281 cliReadLine(linebuffer_t * __restrict cli_buffer, int
|
Line 1281 cliReadLine(linebuffer_t * __restrict cli_buffer, int
|
if (!cli_buffer) { |
if (!cli_buffer) { |
cli_SetErr(EINVAL, "Invalid input parameters ..."); |
cli_SetErr(EINVAL, "Invalid input parameters ..."); |
return NULL; |
return NULL; |
} else | } else if (timeout > 0) |
timeout *= 1000; /* convert from sec to ms */ |
timeout *= 1000; /* convert from sec to ms */ |
|
|
memset(&fds, 0, sizeof fds); |
memset(&fds, 0, sizeof fds); |