diff options
Diffstat (limited to 'sftp-client.c')
-rw-r--r-- | sftp-client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sftp-client.c b/sftp-client.c index 7c234ce2d..5242cab03 100644 --- a/sftp-client.c +++ b/sftp-client.c | |||
@@ -613,7 +613,7 @@ do_download(int fd_in, int fd_out, char *remote_path, char *local_path, | |||
613 | buffer_put_int(&msg, COPY_SIZE); | 613 | buffer_put_int(&msg, COPY_SIZE); |
614 | send_msg(fd_out, &msg); | 614 | send_msg(fd_out, &msg); |
615 | debug3("Sent message SSH2_FXP_READ I:%d O:%llu S:%u", | 615 | debug3("Sent message SSH2_FXP_READ I:%d O:%llu S:%u", |
616 | id, (unsigned long long)offset, COPY_SIZE); | 616 | id, (u_int64_t)offset, COPY_SIZE); |
617 | 617 | ||
618 | buffer_clear(&msg); | 618 | buffer_clear(&msg); |
619 | 619 | ||
@@ -646,7 +646,7 @@ do_download(int fd_in, int fd_out, char *remote_path, char *local_path, | |||
646 | len, COPY_SIZE); | 646 | len, COPY_SIZE); |
647 | 647 | ||
648 | debug3("In read loop, got %d offset %llu", len, | 648 | debug3("In read loop, got %d offset %llu", len, |
649 | (unsigned long long)offset); | 649 | (u_int64_t)offset); |
650 | if (atomicio(write, local_fd, data, len) != len) { | 650 | if (atomicio(write, local_fd, data, len) != len) { |
651 | error("Couldn't write to \"%s\": %s", local_path, | 651 | error("Couldn't write to \"%s\": %s", local_path, |
652 | strerror(errno)); | 652 | strerror(errno)); |
@@ -767,7 +767,7 @@ do_upload(int fd_in, int fd_out, char *local_path, char *remote_path, | |||
767 | buffer_put_string(&msg, data, len); | 767 | buffer_put_string(&msg, data, len); |
768 | send_msg(fd_out, &msg); | 768 | send_msg(fd_out, &msg); |
769 | debug3("Sent message SSH2_FXP_WRITE I:%d O:%llu S:%u", | 769 | debug3("Sent message SSH2_FXP_WRITE I:%d O:%llu S:%u", |
770 | id, (unsigned long long)offset, len); | 770 | id, (u_int64_t)offset, len); |
771 | 771 | ||
772 | status = get_status(fd_in, id); | 772 | status = get_status(fd_in, id); |
773 | if (status != SSH2_FX_OK) { | 773 | if (status != SSH2_FX_OK) { |
@@ -778,7 +778,7 @@ do_upload(int fd_in, int fd_out, char *local_path, char *remote_path, | |||
778 | goto done; | 778 | goto done; |
779 | } | 779 | } |
780 | debug3("In write loop, got %d offset %llu", len, | 780 | debug3("In write loop, got %d offset %llu", len, |
781 | (unsigned long long)offset); | 781 | (u_int64_t)offset); |
782 | 782 | ||
783 | offset += len; | 783 | offset += len; |
784 | } | 784 | } |