Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib printf format fixes ...



details:   https://anonhg.NetBSD.org/src/rev/c6e8966fe084
branches:  trunk
changeset: 749676:c6e8966fe084
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Dec 05 17:23:39 2009 +0000

description:
printf format fixes to make it compile

diffstat:

 crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 61262682d509 -r c6e8966fe084 crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c Sat Dec 05 16:54:13 2009 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c Sat Dec 05 17:23:39 2009 +0000
@@ -227,13 +227,13 @@
                return 0;
        }
        (void)stat(f, &st);
-       if ((buf = calloc(1, st.st_size)) == NULL) {
-               (void) fprintf(stderr, "can't calloc %lld bytes for '%s'\n", st.st_size, f);
+       if ((buf = calloc(1, (size_t)st.st_size)) == NULL) {
+               (void) fprintf(stderr, "can't calloc %zu bytes for '%s'\n", (size_t)st.st_size, f);
                bufgap_close(&bg);
                return 0;
        }
-       if ((bin = calloc(1, st.st_size)) == NULL) {
-               (void) fprintf(stderr, "can't calloc %lld bytes for '%s'\n", st.st_size, f);
+       if ((bin = calloc(1, (size_t)st.st_size)) == NULL) {
+               (void) fprintf(stderr, "can't calloc %zu bytes for '%s'\n", (size_t)st.st_size, f);
                (void) free(buf);
                bufgap_close(&bg);
                return 0;
@@ -301,7 +301,7 @@
 
        /* check for stragglers */
        if (ok && bufgap_tell(&bg, BGFromEOF, BGByte) > 0) {
-               printf("%lld bytes left\n", bufgap_tell(&bg, BGFromEOF, BGByte));
+               printf("%"PRIi64" bytes left\n", bufgap_tell(&bg, BGFromEOF, BGByte));
                printf("[%s]\n", bufgap_getstr(&bg));
                ok = 0;
        }



Home | Main Index | Thread Index | Old Index