Style nits.

This commit is contained in:
nicm
2017-02-16 10:53:25 +00:00
parent dd25a6cdc2
commit 8b8d0963da
5 changed files with 10 additions and 14 deletions

View File

@ -131,14 +131,11 @@ cmd_run_shell_callback(struct job *job)
char *cmd = cdata->cmd, *msg, *line;
size_t size;
int retcode;
u_int lines;
lines = 0;
do {
if ((line = evbuffer_readline(job->event->input)) != NULL) {
cmd_run_shell_print(job, line);
free(line);
lines++;
}
} while (line != NULL);
@ -149,7 +146,6 @@ cmd_run_shell_callback(struct job *job)
line[size] = '\0';
cmd_run_shell_print(job, line);
lines++;
free(line);
}