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/netpgpverify cast argume...
details: https://anonhg.NetBSD.org/src/rev/79b2835435e5
branches: trunk
changeset: 327573:79b2835435e5
user: agc <agc%NetBSD.org@localhost>
date: Tue Mar 11 17:38:48 2014 +0000
description:
cast arguments to the correct type for format strings
diffstat:
crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 20783041743c -r 79b2835435e5 crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c
--- a/crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c Tue Mar 11 17:21:05 2014 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c Tue Mar 11 17:38:48 2014 +0000
@@ -1994,7 +1994,7 @@
if (is_armored(buf, sizeof(buf))) {
read_ascii_armor_file(cursor, p);
} else {
- read_binary_file(pgp, "signature", "%s", p);
+ read_binary_file(pgp, "signature", "%s", (const char *)p);
}
fclose(fp);
} else {
@@ -2672,7 +2672,7 @@
if (keyring) {
return (size > 0) ?
read_binary_memory(pgp, "pubring", keyring, (size_t)size) :
- read_binary_file(pgp, "pubring", "%s", keyring);
+ read_binary_file(pgp, "pubring", "%s", (const char *)keyring);
}
return read_binary_file(pgp, "pubring", "%s/%s", nonnull_getenv("HOME"), ".gnupg/pubring.gpg");
}
@@ -2687,7 +2687,7 @@
return 0;
}
if (keyring) {
- if (!read_ssh_file(pgp, &primary, "%s", keyring)) {
+ if (!read_ssh_file(pgp, &primary, "%s", (const char *)keyring)) {
return 0;
}
} else if (!read_ssh_file(pgp, &primary, "%s/%s", nonnull_getenv("HOME"), ".ssh/id_rsa.pub")) {
Home |
Main Index |
Thread Index |
Old Index