diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-02-16 12:01:21 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-02-16 12:01:21 +0000 |
commit | f734d81074c6bd587b36c7d49dc359821412c29c (patch) | |
tree | 1e7ee13c6355697f62c20ec15edbc9c7ded2726e /cmd-run-shell.c | |
parent | c9f2dc5ee5ffc2d71f492b23ff1ee80619c12258 (diff) | |
parent | 8b8d0963da522c3a0ac4e99dc9264b6fda2b477a (diff) | |
download | rtmux-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.c | 4 |
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); } |