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 netpgp: fix build wi...
details: https://anonhg.NetBSD.org/src/rev/60ee3d26fd50
branches: trunk
changeset: 371712:60ee3d26fd50
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Oct 03 05:34:31 2022 +0000
description:
netpgp: fix build with Clang (since 2022-10-01)
error: passing 'char [1]' to parameter of type 'const uint8_t *'
(aka 'const unsigned char *') converts between pointers to integer
types where one is of the unique plain 'char' type and the other is
not [-Werror,-Wpointer-sign]
diffstat:
crypto/external/bsd/netpgp/dist/src/lib/keyring.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 9e01457b393b -r 60ee3d26fd50 crypto/external/bsd/netpgp/dist/src/lib/keyring.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/keyring.c Sun Oct 02 23:36:41 2022 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/keyring.c Mon Oct 03 05:34:31 2022 +0000
@@ -57,7 +57,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: keyring.c,v 1.59 2022/10/01 22:21:31 rillig Exp $");
+__RCSID("$NetBSD: keyring.c,v 1.60 2022/10/03 05:34:31 rillig Exp $");
#endif
#ifdef HAVE_FCNTL_H
@@ -1159,7 +1159,7 @@
pgp_write_xfer_seckey(output, keydata, passphrase,
strlen((char *)passphrase), 1);
}
- pgp_memory_add(mem, "", 1);
+ pgp_memory_add(mem, (uint8_t[]){0}, 1);
cp = netpgp_strdup(pgp_mem_data(mem));
pgp_teardown_memory_write(output, mem);
return cp;
Home |
Main Index |
Thread Index |
Old Index