From 509e4a4d7491daf496b21e5892f4f63ab90e8e21 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 23 May 2017 06:42:44 +0900 Subject: 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 --- agent/call-pinentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'agent/call-pinentry.c') 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 -- cgit v1.2.3