|
|
| version 1.9.2.3, 2013/11/20 16:21:55 | version 1.11.2.1, 2013/11/22 14:25:37 |
|---|---|
| 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); |
| Line 1535 cliLoop(linebuffer_t * __restrict cli_buffer, const ch | Line 1535 cliLoop(linebuffer_t * __restrict cli_buffer, const ch |
| cli_freeLine(cli_buffer); | cli_freeLine(cli_buffer); |
| cli_resetHistory(cli_buffer); | cli_resetHistory(cli_buffer); |
| e_free(line); | e_free(line); |
| } while (ret < 1); | } while (cli_buffer->line_kill || ret < 1); |
| cli_saveHistory(cli_buffer, csHistFile, HISTORY_LINES); | cli_saveHistory(cli_buffer, csHistFile, HISTORY_LINES); |
| return ret; | return ret; |