summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf-comp.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2017-07-19 06:43:23 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2017-07-19 06:43:23 +0200
commit99791184ac4c7486ccdefc150b9921cd923428b9 (patch)
tree69326b1499120f739abc12a9acec7c643ad4081c /tools/gpgconf-comp.c
parentFix usage of ARGPARSE_OPTS. (diff)
downloadgnupg2-99791184ac4c7486ccdefc150b9921cd923428b9.tar.xz
gnupg2-99791184ac4c7486ccdefc150b9921cd923428b9.zip
gpgconf: Make vars read-only explicitly.
* tools/gpgconf-comp.c (gc_backend, gc_arg_type, gc_level, gc_flag) (gc_component): Add const qualifier. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to '')
-rw-r--r--tools/gpgconf-comp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index f608f7a2c..a8ecb076e 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -149,7 +149,7 @@ typedef enum
/* To be able to implement generic algorithms for the various
backends, we collect all information about them in this struct. */
-static struct
+static const struct
{
/* The name of the backend. */
const char *name;
@@ -256,7 +256,7 @@ typedef enum
/* For every argument, we record some information about it in the
following struct. */
-static struct
+static const struct
{
/* For every argument type exists a basic argument type that can be
used as a fallback for input and validation purposes. */
@@ -328,7 +328,7 @@ typedef enum
} gc_expert_level_t;
/* A description for each expert level. */
-static struct
+static const struct
{
const char *name;
} gc_level[] =
@@ -361,7 +361,7 @@ static struct
/* A human-readable description for each flag. */
-static struct
+static const struct
{
const char *name;
} gc_flag[] =
@@ -1070,7 +1070,7 @@ typedef enum
/* The information associated with each component. */
-static struct
+static const struct
{
/* The name of this component. Must not contain a colon (':')
character. */