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 Fix build problems o...
details: https://anonhg.NetBSD.org/src/rev/9a3c963c35ef
branches: trunk
changeset: 755862:9a3c963c35ef
user: agc <agc%NetBSD.org@localhost>
date: Fri Jun 25 18:30:16 2010 +0000
description:
Fix build problems on LP64 platforms - thanks to Paul Goyette for the nudge.
diffstat:
crypto/external/bsd/netpgp/dist/src/lib/misc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 0670047eace3 -r 9a3c963c35ef crypto/external/bsd/netpgp/dist/src/lib/misc.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/misc.c Fri Jun 25 17:53:28 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/misc.c Fri Jun 25 18:30:16 2010 +0000
@@ -57,7 +57,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: misc.c,v 1.31 2010/06/25 03:37:27 agc Exp $");
+__RCSID("$NetBSD: misc.c,v 1.32 2010/06/25 18:30:16 agc Exp $");
#endif
#include <sys/types.h>
@@ -1099,10 +1099,10 @@
char line[LINELEN + 1];
(void) fprintf(fp, "%s%s", (header) ? header : "", (header) ? "\n" : "");
- (void) fprintf(fp, "[%d chars]\n", length);
+ (void) fprintf(fp, "[%" PRIsize "u char%s]\n", length, (length == 1) ? "" : "s");
for (i = 0 ; i < length ; i++) {
if (i % LINELEN == 0) {
- (void) fprintf(fp, "%.5d | ", i);
+ (void) fprintf(fp, "%.5" PRIsize "u | ", i);
}
(void) fprintf(fp, "%.02x ", (uint8_t)src[i]);
line[i % LINELEN] = (isprint(src[i])) ? src[i] : '.';
Home |
Main Index |
Thread Index |
Old Index