summaryrefslogtreecommitdiffstats
path: root/qarsh.c
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-09-27 11:42:39 -0400
committerNathan Straz <nstraz@redhat.com>2013-10-02 14:11:33 -0400
commit837ff5d713c667f2ea0d111333098dad3175e9b8 (patch)
tree311caf43e66721deec3c6a87ec6ea04dc2470205 /qarsh.c
parentdb70c6e59af1634d3734019e6e2e17c95f6c6d97 (diff)
downloadqarsh-837ff5d713c667f2ea0d111333098dad3175e9b8.tar.gz
qarsh-837ff5d713c667f2ea0d111333098dad3175e9b8.tar.xz
qarsh-837ff5d713c667f2ea0d111333098dad3175e9b8.zip
Remove offset from data packet
We really don't need this field since we always copy data sequentially.
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));