summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2017-02-16 10:53:25 +0000
committernicm <nicm>2017-02-16 10:53:25 +0000
commit8b8d0963da522c3a0ac4e99dc9264b6fda2b477a (patch)
tree43fa691802d7922ec30c8f79b719a20cf3aea657 /cmd-run-shell.c
parentdd25a6cdc21c76888c370a053ca2adb710a89cdf (diff)
Style nits.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index 29375428..e6cd7936 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -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);
}