aboutsummaryrefslogtreecommitdiff
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-02-16 12:01:21 +0000
committerThomas Adam <thomas@xteddy.org>2017-02-16 12:01:21 +0000
commitf734d81074c6bd587b36c7d49dc359821412c29c (patch)
tree1e7ee13c6355697f62c20ec15edbc9c7ded2726e /cmd-run-shell.c
parentc9f2dc5ee5ffc2d71f492b23ff1ee80619c12258 (diff)
parent8b8d0963da522c3a0ac4e99dc9264b6fda2b477a (diff)
downloadrtmux-f734d81074c6bd587b36c7d49dc359821412c29c.tar.gz
rtmux-f734d81074c6bd587b36c7d49dc359821412c29c.tar.bz2
rtmux-f734d81074c6bd587b36c7d49dc359821412c29c.zip
Merge branch 'obsd-master'
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);
}