aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2016-08-31 08:58:18 +0000
committerNeal H. Walfield <[email protected]>2016-08-31 08:58:18 +0000
commit70df5a8fd781d8774d835384ca28c4d8518bb9d0 (patch)
treefca4dd2100377e9b3a2e8c1a50c3a53306b20870
parentgpg: Move state local to tofu.c to a private structure. (diff)
downloadgnupg-70df5a8fd781d8774d835384ca28c4d8518bb9d0.tar.gz
gnupg-70df5a8fd781d8774d835384ca28c4d8518bb9d0.zip
g10: Drop unused argument.
* g10/tofu.c (begin_transaction): Remove unused option only_batch. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/tofu.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 88833cd73..62c6efceb 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -163,7 +163,7 @@ tofu_policy_to_trust_level (enum tofu_policy policy)
/* Start a transaction on DB. */
static gpg_error_t
-begin_transaction (ctrl_t ctrl, int only_batch)
+begin_transaction (ctrl_t ctrl)
{
tofu_dbs_t dbs = ctrl->tofu.dbs;
int rc;
@@ -219,9 +219,6 @@ begin_transaction (ctrl_t ctrl, int only_batch)
dbs->batch_update_started = gnupg_get_time ();
}
- if (only_batch)
- return 0;
-
log_assert(dbs->in_transaction >= 0);
dbs->in_transaction ++;
@@ -2231,7 +2228,7 @@ tofu_register (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list,
/* We do a query and then an insert. Make sure they are atomic
by wrapping them in a transaction. */
- rc = begin_transaction (ctrl, 0);
+ rc = begin_transaction (ctrl);
if (rc)
return rc;
@@ -2479,7 +2476,7 @@ tofu_get_validity (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list,
fingerprint = hexfingerprint (pk, NULL, 0);
- begin_transaction (ctrl, 0);
+ begin_transaction (ctrl);
for (user_id = user_id_list; user_id; user_id = user_id->next, bindings ++)
{