]> andersk Git - openssh.git/commitdiff
- deraadt@cvs.openbsd.org 2001/02/04 08:23:08
authorstevesk <stevesk>
Mon, 5 Feb 2001 15:39:22 +0000 (15:39 +0000)
committerstevesk <stevesk>
Mon, 5 Feb 2001 15:39:22 +0000 (15:39 +0000)
     [sftp-client.c sftp-server.c]
     make gcc on the alpha even happier

ChangeLog
sftp-client.c
sftp-server.c

index 2f8af28c05980c1c50a2c353a56fd99844b3f0b2..06882f114b20f6a0754a1d86f0c336f2ea709d87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,6 +54,9 @@
    - markus@cvs.openbsd.org  2001/01/31 13:48:09
      [sshconnect2.c]
      unused
+   - deraadt@cvs.openbsd.org 2001/02/04 08:23:08
+     [sftp-client.c sftp-server.c]
+     make gcc on the alpha even happier
 
 20010104
  - (bal) I think this is the last of the bsd-*.h that don't belong.
index c64a43f7accbd7d8c244156b1e69b49024611ffe..e4282384147fea5e906cf3df401c3e81c10d02b9 100644 (file)
@@ -29,7 +29,7 @@
 /* XXX: copy between two remote sites */
 
 #include "includes.h"
-RCSID("$OpenBSD: sftp-client.c,v 1.1 2001/02/04 11:11:54 djm Exp $");
+RCSID("$OpenBSD: sftp-client.c,v 1.3 2001/02/04 15:32:25 stevesk Exp $");
 
 #include "ssh.h"
 #include "buffer.h"
@@ -621,7 +621,7 @@ do_download(int fd_in, int fd_out, char *remote_path, char *local_path,
                buffer_put_int(&msg, COPY_SIZE);
                send_msg(fd_out, &msg);
                debug3("Sent message SSH2_FXP_READ I:%d O:%llu S:%u",
-                   id, offset, COPY_SIZE);
+                   id, (unsigned long long)offset, COPY_SIZE);
 
                buffer_clear(&msg);
 
@@ -656,7 +656,8 @@ do_download(int fd_in, int fd_out, char *remote_path, char *local_path,
                        fatal("Received more data than asked for %d > %d",
                            len, COPY_SIZE);
 
-               debug3("In read loop, got %d offset %lld", len, offset);
+               debug3("In read loop, got %d offset %lld", len,
+                   (unsigned long long)offset);
                if (atomicio(write, local_fd, data, len) != len) {
                        error("Couldn't write to \"%s\": %s", local_path,
                            strerror(errno));
@@ -763,7 +764,7 @@ do_upload(int fd_in, int fd_out, char *local_path, char *remote_path,
                buffer_put_string(&msg, data, len);
                send_msg(fd_out, &msg);
                debug3("Sent message SSH2_FXP_WRITE I:%d O:%llu S:%u",
-                   id, offset, len);
+                   id, (unsigned long long)offset, len);
 
                status = get_status(fd_in, id);
                if (status != SSH2_FX_OK) {
@@ -774,7 +775,8 @@ do_upload(int fd_in, int fd_out, char *local_path, char *remote_path,
                        close(local_fd);
                        return(-1);
                }
-               debug3("In write loop, got %d offset %lld", len, offset);
+               debug3("In write loop, got %d offset %llu", len,
+                   (unsigned long long)offset);
 
                offset += len;
        }
index ade2663e7cbdc03c32d5c678d8c26858eb2c4963..dd1b43c5112026abbd420928d5dc95885154d593 100644 (file)
@@ -401,7 +401,8 @@ process_read(void)
        off = get_int64();
        len = get_int();
 
-       TRACE("read id %d handle %d off %lld len %d", id, handle, off, len);
+       TRACE("read id %d handle %d off %llu len %d", id, handle,
+           (unsigned long long)off, len);
        if (len > sizeof buf) {
                len = sizeof buf;
                log("read change len %d", len);
@@ -441,7 +442,8 @@ process_write(void)
        off = get_int64();
        data = get_string(&len);
 
-       TRACE("write id %d handle %d off %lld len %d", id, handle, off, len);
+       TRACE("write id %d handle %d off %llu len %d", id, handle,
+           (unsigned long long)off, len);
        fd = handle_to_fd(handle);
        if (fd >= 0) {
                if (lseek(fd, off, SEEK_SET) < 0) {
This page took 0.048899 seconds and 5 git commands to generate.