From 789401e9557db13422f47a8c09e693f3cee0132b Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 24 Jul 2017 15:35:34 +0900 Subject: [PATCH] dirmngr: More minor fixes. * dirmngr/http.c (http_verify_server_credentials): Duplicated const. * dirmngr/ldap.c (parse_one_pattern): Add comment. Signed-off-by: NIIBE Yutaka --- dirmngr/http.c | 2 +- dirmngr/ldap.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dirmngr/http.c b/dirmngr/http.c index c64107072..b16de7d6f 100644 --- a/dirmngr/http.c +++ b/dirmngr/http.c @@ -3282,7 +3282,7 @@ gpg_error_t http_verify_server_credentials (http_session_t sess) { #if HTTP_USE_GNUTLS - static const char const errprefix[] = "TLS verification of peer failed"; + static const char errprefix[] = "TLS verification of peer failed"; int rc; unsigned int status; const char *hostname; diff --git a/dirmngr/ldap.c b/dirmngr/ldap.c index d661a6825..adf83071e 100644 --- a/dirmngr/ldap.c +++ b/dirmngr/ldap.c @@ -363,6 +363,7 @@ parse_one_pattern (const char *pattern) break; case '*': pattern++; + /* fall through */ default: /* Take as substring match. */ { const char format[] = "(|(sn=*%s*)(|(cn=*%s*)(mail=*%s*)))";