Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ssh unsigned long long -> %llu, not %qd



details:   https://anonhg.NetBSD.org/src/rev/4964b8417222
branches:  trunk
changeset: 503517:4964b8417222
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Feb 07 18:01:30 2001 +0000

description:
unsigned long long -> %llu, not %qd

diffstat:

 crypto/dist/ssh/scp.c         |  2 +-
 crypto/dist/ssh/sftp-client.c |  2 +-
 crypto/dist/ssh/sftp-server.c |  4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 8264d3fd73be -r 4964b8417222 crypto/dist/ssh/scp.c
--- a/crypto/dist/ssh/scp.c     Wed Feb 07 17:35:56 2001 +0000
+++ b/crypto/dist/ssh/scp.c     Wed Feb 07 18:01:30 2001 +0000
@@ -1133,7 +1133,7 @@
                i++;
                abbrevsize >>= 10;
        }
-       snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " %5qd %c%c ",
+       snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " %5llu %c%c ",
            (unsigned long long) abbrevsize, prefixes[i],
            prefixes[i] == ' ' ? ' ' : 'B');
 
diff -r 8264d3fd73be -r 4964b8417222 crypto/dist/ssh/sftp-client.c
--- a/crypto/dist/ssh/sftp-client.c     Wed Feb 07 17:35:56 2001 +0000
+++ b/crypto/dist/ssh/sftp-client.c     Wed Feb 07 18:01:30 2001 +0000
@@ -657,7 +657,7 @@
                        fatal("Received more data than asked for %d > %d",
                            len, COPY_SIZE);
 
-               debug3("In read loop, got %d offset %lld", len,
+               debug3("In read loop, got %d offset %llu", len,
                    (unsigned long long)offset);
                if (atomic_write(local_fd, data, len) != len) {
                        error("Couldn't write to \"%s\": %s", local_path,
diff -r 8264d3fd73be -r 4964b8417222 crypto/dist/ssh/sftp-server.c
--- a/crypto/dist/ssh/sftp-server.c     Wed Feb 07 17:35:56 2001 +0000
+++ b/crypto/dist/ssh/sftp-server.c     Wed Feb 07 18:01:30 2001 +0000
@@ -664,8 +664,8 @@
        }
        if (sz == 0)
                tbuf[0] = '\0';
-       snprintf(buf, sizeof buf, "%s %3d %-8.8s %-8.8s %8qd %s %s", mode,
-           st->st_nlink, user, group, (long long)st->st_size, tbuf, name);
+       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);
        return xstrdup(buf);
 }
 



Home | Main Index | Thread Index | Old Index