Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ssh use cast to unsigned long long, instead of P...



details:   https://anonhg.NetBSD.org/src/rev/0545f87b87f6
branches:  trunk
changeset: 537635:0545f87b87f6
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Oct 04 02:22:05 2002 +0000

description:
use cast to unsigned long long, instead of PRIu64
(to make it easier to move the change back to main openssh distribution)

diffstat:

 crypto/dist/ssh/sftp-common.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 195f6320ec4b -r 0545f87b87f6 crypto/dist/ssh/sftp-common.c
--- a/crypto/dist/ssh/sftp-common.c     Fri Oct 04 01:54:47 2002 +0000
+++ b/crypto/dist/ssh/sftp-common.c     Fri Oct 04 02:22:05 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sftp-common.c,v 1.7 2002/10/03 07:41:10 petrov Exp $   */
+/*     $NetBSD: sftp-common.c,v 1.8 2002/10/04 02:22:05 itojun Exp $   */
 /*
  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
  * Copyright (c) 2001 Damien Miller.  All rights reserved.
@@ -207,8 +207,8 @@
                tbuf[0] = '\0';
        ulen = MAX(strlen(user), 8);
        glen = MAX(strlen(group), 8);
-       snprintf(buf, sizeof buf, "%s %3d %-*s %-*s %8" PRIu64 " %s %s", mode,
+       snprintf(buf, sizeof buf, "%s %3d %-*s %-*s %8llu %s %s", mode,
            st->st_nlink, ulen, user, glen, group,
-           (u_int64_t)st->st_size, tbuf, name);
+           (unsigned long long)st->st_size, tbuf, name);
        return xstrdup(buf);
 }



Home | Main Index | Thread Index | Old Index