]> andersk Git - openssh.git/commitdiff
- (bal) Replace 'unsigned long long' to 'u_int64_t' since not every
authormouring <mouring>
Sun, 25 Feb 2001 02:02:43 +0000 (02:02 +0000)
committermouring <mouring>
Sun, 25 Feb 2001 02:02:43 +0000 (02:02 +0000)
   platform defines u_int64_t as being that.

ChangeLog
sftp-client.c
sftp-server.c

index de2f996eb061dbb7eaba7aeb72688fb39045fe17..175f7b6d19cb57f0900446450ec5b7efb111c5ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 20010225
  - (djm) Use %{_libexecdir} rather than hardcoded path in RPM specfile
    Patch from Adrian Ho <lexfiend@usa.net>
+ - (bal) Replace 'unsigned long long' to 'u_int64_t' since not every
+   platform defines u_int64_t as being that.
 
 20010224
  - (bal) Missed part of the UNIX sockets patch.  Patch by Corinna 
index 7c234ce2d6cd7f8b2b0a8ab3c172b809d6554cf2..5242cab0347f673ebdcc22ef46886b84dd68a581 100644 (file)
@@ -613,7 +613,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, (unsigned long long)offset, COPY_SIZE);
+                   id, (u_int64_t)offset, COPY_SIZE);
 
                buffer_clear(&msg);
 
@@ -646,7 +646,7 @@ do_download(int fd_in, int fd_out, char *remote_path, char *local_path,
                            len, COPY_SIZE);
 
                debug3("In read loop, got %d offset %llu", len,
-                   (unsigned long long)offset);
+                   (u_int64_t)offset);
                if (atomicio(write, local_fd, data, len) != len) {
                        error("Couldn't write to \"%s\": %s", local_path,
                            strerror(errno));
@@ -767,7 +767,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, (unsigned long long)offset, len);
+                   id, (u_int64_t)offset, len);
 
                status = get_status(fd_in, id);
                if (status != SSH2_FX_OK) {
@@ -778,7 +778,7 @@ do_upload(int fd_in, int fd_out, char *local_path, char *remote_path,
                        goto done;
                }
                debug3("In write loop, got %d offset %llu", len,
-                   (unsigned long long)offset);
+                   (u_int64_t)offset);
 
                offset += len;
        }
index 0291da2063de61dc4981cdb6aac29d9de1b1fb32..e959a5515f34c58550ea26883914ed4e00b9c368 100644 (file)
@@ -402,7 +402,7 @@ process_read(void)
        len = get_int();
 
        TRACE("read id %d handle %d off %llu len %d", id, handle,
-           (unsigned long long)off, len);
+           (u_int64_t)off, len);
        if (len > sizeof buf) {
                len = sizeof buf;
                log("read change len %d", len);
@@ -443,7 +443,7 @@ process_write(void)
        data = get_string(&len);
 
        TRACE("write id %d handle %d off %llu len %d", id, handle,
-           (unsigned long long)off, len);
+           (u_int64_t)off, len);
        fd = handle_to_fd(handle);
        if (fd >= 0) {
                if (lseek(fd, off, SEEK_SET) < 0) {
@@ -685,7 +685,7 @@ ls_file(char *name, struct stat *st)
        if (sz == 0)
                tbuf[0] = '\0';
        snprintf(buf, sizeof buf, "%s %3d %-8.8s %-8.8s %8llu %s %s", mode,
-           st->st_nlink, user, group, (unsigned long long)st->st_size, tbuf, name);
+           st->st_nlink, user, group, (u_int64_t)st->st_size, tbuf, name);
        return xstrdup(buf);
 }
 
This page took 0.056428 seconds and 5 git commands to generate.