summaryrefslogtreecommitdiffstats
path: root/qarsh.c
diff options
context:
space:
mode:
Diffstat (limited to 'qarsh.c')
-rw-r--r--qarsh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qarsh.c b/qarsh.c
index 9081ee3..bcfcf5c 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -251,7 +251,7 @@ run_remote_cmd(char *cmdline)
if (allowed_in != -1) {
/* close stdin if it is a tty */
if (stdin_isatty) {
- qp = make_qp_data(0, 0, 0, NULL);
+ qp = make_qp_data(0, 0, NULL);
ret = send_packet(qarsh_fd, qp);
if (ret == -1) {
fprintf(stderr, "Failed to send data packet: %s\n", strerror(errno));
@@ -304,7 +304,7 @@ run_remote_cmd(char *cmdline)
if (nset && FD_ISSET(fileno(stdin), &rfds)) {
nbytes = read(fileno(stdin), buf, allowed_in);
if (nbytes >= 0) {
- qp = make_qp_data(0, 0, nbytes, buf);
+ qp = make_qp_data(0, nbytes, buf);
ret = send_packet(qarsh_fd, qp);
if (ret == -1) {
fprintf(stderr, "Failed to send data packet: %s\n", strerror(errno));