diff options
author | NIIBE Yutaka <[email protected]> | 2017-05-22 21:42:44 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-05-22 21:42:44 +0000 |
commit | 509e4a4d7491daf496b21e5892f4f63ab90e8e21 (patch) | |
tree | f19697b16fe58ff3274e45fd904a37aef37ea334 /agent/call-pinentry.c | |
parent | g10: Fix default-key selection for signing, possibly by card. (diff) | |
download | gnupg-509e4a4d7491daf496b21e5892f4f63ab90e8e21.tar.gz gnupg-509e4a4d7491daf496b21e5892f4f63ab90e8e21.zip |
agent: Add const qualifier for read-only table.
* agent/call-pinentry.c (start_pinentry): Add const to tbl.
* agent/command-ssh.c (request_specs): Add const.
(ssh_key_types): Likewise.
(request_spec_lookup): Add const to the return value and SPEC.
(ssh_request_process): Likewise.
* agent/protect.c (protect_info): Add const.
(agent_unprotect): Add const to algotable.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/call-pinentry.c')
-rw-r--r-- | agent/call-pinentry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c index 1ff405951..9d8e7f63e 100644 --- a/agent/call-pinentry.c +++ b/agent/call-pinentry.c @@ -489,7 +489,7 @@ start_pinentry (ctrl_t ctrl) { /* Provide a few default strings for use by the pinentries. This may help a pinentry to avoid implementing localization code. */ - static struct { const char *key, *value; int what; } tbl[] = { + static const struct { const char *key, *value; int what; } tbl[] = { /* TRANSLATORS: These are labels for buttons etc used in Pinentries. An underscore indicates that the next letter should be used as an accelerator. Double the underscore for |