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 Avoid a type cast
details: https://anonhg.NetBSD.org/src/rev/47b4ad5d1450
branches: trunk
changeset: 352589:47b4ad5d1450
user: khorben <khorben%NetBSD.org@localhost>
date: Sun Apr 09 22:44:34 2017 +0000
description:
Avoid a type cast
No functional change intended.
diffstat:
crypto/external/bsd/netpgp/dist/src/lib/signature.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r b4b5ad2a9ba8 -r 47b4ad5d1450 crypto/external/bsd/netpgp/dist/src/lib/signature.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/signature.c Sun Apr 09 21:57:59 2017 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/signature.c Sun Apr 09 22:44:34 2017 +0000
@@ -57,7 +57,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: signature.c,v 1.34 2012/03/05 02:20:18 christos Exp $");
+__RCSID("$NetBSD: signature.c,v 1.35 2017/04/09 22:44:34 khorben Exp $");
#endif
#include <sys/types.h>
@@ -905,7 +905,7 @@
if (outname) {
fd = pgp_setup_file_write(output, outname, overwrite);
} else {
- unsigned flen = (unsigned)(strlen(inname) + 4 + 1);
+ size_t flen = strlen(inname) + 4 + 1;
char *f = NULL;
if ((f = calloc(1, flen)) == NULL) {
Home |
Main Index |
Thread Index |
Old Index