summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf-comp.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-02-12 19:28:54 +0100
committerWerner Koch <wk@gnupg.org>2013-02-22 09:42:46 +0100
commitc6b8f05517228c6aeab28d2bf5da7724c059bb1a (patch)
treebbf13dab985d74b573a7caf2c3de91c7224e69b8 /tools/gpgconf-comp.c
parentgpg: Fix a memory leak in batch key generation (diff)
downloadgnupg2-c6b8f05517228c6aeab28d2bf5da7724c059bb1a.tar.xz
gnupg2-c6b8f05517228c6aeab28d2bf5da7724c059bb1a.zip
Remove some unused variables.
* tools/gpgconf-comp.c (gc_process_gpgconf_conf): Remove unused used_components. * agent/command-ssh.c (ssh_signature_encoder_ecdsa): Mark unused arg. * g13/g13.c (main): Comment variable of yet unimplemented options.
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r--tools/gpgconf-comp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index 9dbddeee9..0b3c9c0e7 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -3382,7 +3382,6 @@ gc_process_gpgconf_conf (const char *fname_arg, int update, int defaults,
int in_rule = 0;
int got_match = 0;
int runtime[GC_BACKEND_NR];
- int used_components[GC_COMPONENT_NR];
int backend_id, component_id;
char *fname;
@@ -3393,8 +3392,6 @@ gc_process_gpgconf_conf (const char *fname_arg, int update, int defaults,
for (backend_id = 0; backend_id < GC_BACKEND_NR; backend_id++)
runtime[backend_id] = 0;
- for (component_id = 0; component_id < GC_COMPONENT_NR; component_id++)
- used_components[component_id] = 0;
config = fopen (fname, "r");
if (!config)
@@ -3621,9 +3618,6 @@ gc_process_gpgconf_conf (const char *fname_arg, int update, int defaults,
if (defaults)
{
- assert (component_id >= 0 && component_id < GC_COMPONENT_NR);
- used_components[component_id] = 1;
-
/* Here we explicitly allow to update the value again. */
if (newflags)
{