[Pkg-gnupg-commit] [gnupg2] 39/118: g10: Remove unused parameter.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 15 18:25:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch encoding-and-speling
in repository gnupg2.
commit 00c2850393ecc320f591f511c3534286964780c2
Author: Neal H. Walfield <neal at g10code.com>
Date: Thu Sep 1 13:17:06 2016 +0200
g10: Remove unused parameter.
* g10/tofu.c (show_statistics): Remove unused parameter sig_exclude.
Update callers.
--
Signed-off-by: Neal H. Walfield <neal at g10code.com>
---
g10/tofu.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/g10/tofu.c b/g10/tofu.c
index de685a6..14d361b 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -2108,7 +2108,7 @@ write_stats_status (estream_t fp, long messages, enum tofu_policy policy,
static void
show_statistics (tofu_dbs_t dbs, const char *fingerprint,
const char *email, const char *user_id,
- const char *sig_exclude, estream_t outfp)
+ estream_t outfp)
{
char *fingerprint_pp;
int rc;
@@ -2122,13 +2122,8 @@ show_statistics (tofu_dbs_t dbs, const char *fingerprint,
"select count (*), min (signatures.time), max (signatures.time)\n"
" from signatures\n"
" left join bindings on signatures.binding = bindings.oid\n"
- " where fingerprint = %Q and email = %Q and sig_digest %s%s%s;",
- fingerprint, email,
- /* We want either: sig_digest != 'SIG_EXCLUDE' or sig_digest is
- not NULL. */
- sig_exclude ? "!= '" : "is not NULL",
- sig_exclude ? sig_exclude : "",
- sig_exclude ? "'" : "");
+ " where fingerprint = %Q and email = %Q;",
+ fingerprint, email);
if (rc)
{
log_error (_("error reading TOFU database: %s\n"), err);
@@ -2598,7 +2593,7 @@ tofu_write_tfs_record (ctrl_t ctrl, estream_t fp,
fingerprint = hexfingerprint (pk, NULL, 0);
email = email_from_user_id (user_id);
- show_statistics (dbs, fingerprint, email, user_id, NULL, fp);
+ show_statistics (dbs, fingerprint, email, user_id, fp);
xfree (email);
xfree (fingerprint);
@@ -2669,7 +2664,7 @@ tofu_get_validity (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list,
bindings_valid ++;
if (may_ask && tl != TRUST_ULTIMATE && tl != TRUST_EXPIRED)
- show_statistics (dbs, fingerprint, email, user_id->d, NULL, NULL);
+ show_statistics (dbs, fingerprint, email, user_id->d, NULL);
if (tl == TRUST_NEVER)
trust_level = TRUST_NEVER;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list