summaryrefslogtreecommitdiffstats
path: root/sm/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-11-10 15:38:14 +0100
committerWerner Koch <wk@gnupg.org>2016-11-10 17:04:03 +0100
commitc8044c6e335f044d7386b9e8869bc4a0d3adff70 (patch)
tree4bc00f75f37aa63f7e07a1133282a1570c3d8ac8 /sm/keylist.c
parentgpgscm: Recover cells from the list of recently allocated cells. (diff)
downloadgnupg2-c8044c6e335f044d7386b9e8869bc4a0d3adff70.tar.xz
gnupg2-c8044c6e335f044d7386b9e8869bc4a0d3adff70.zip
sm: Remove unused arg SECRET from keydb functions.
* sm/keydb.c (struct resource_item): Remove field 'secret'. (keydb_add_resource): Remove arg 'secret' and change all callers. (keydb_new): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm/keylist.c')
-rw-r--r--sm/keylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/keylist.c b/sm/keylist.c
index c4d475ce5..7bd20dd39 100644
--- a/sm/keylist.c
+++ b/sm/keylist.c
@@ -1329,7 +1329,7 @@ list_internal_keys (ctrl_t ctrl, strlist_t names, estream_t fp,
int have_secret;
int want_ephemeral = ctrl->with_ephemeral_keys;
- hd = keydb_new (0);
+ hd = keydb_new ();
if (!hd)
{
log_error ("keydb_new failed\n");