From: Richard Russon Date: Fri, 20 Jul 2018 21:39:06 +0000 (+0100) Subject: drop dupe function X-Git-Tag: 2019-10-25~743^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fdaffb4e6828c4f13cffa03f0b11b1410d96d1e;p=neomutt drop dupe function --- diff --git a/ncrypt/crypt_gpgme.c b/ncrypt/crypt_gpgme.c index 041be471f..1cb10be73 100644 --- a/ncrypt/crypt_gpgme.c +++ b/ncrypt/crypt_gpgme.c @@ -960,16 +960,6 @@ static char *encrypt_gpgme_object(gpgme_data_t plaintext, gpgme_key_t *rset, return outfile; } -/** - * strlower - Lower-case a string - * @param s String to alter - */ -static void strlower(char *s) -{ - for (; *s; ++s) - *s = tolower(*s); -} - /** * get_micalg - Find the "micalg" parameter from the last GPGME operation * @param ctx GPGME handle @@ -1001,13 +991,13 @@ static int get_micalg(gpgme_ctx_t ctx, int use_smime, char *buf, size_t buflen) { /* convert GPGME raw hash name to RFC2633 format */ snprintf(buf, buflen, "%s", algorithm_name); - strlower(buf); + mutt_str_strlower(buf); } else { /* convert GPGME raw hash name to RFC3156 format */ snprintf(buf, buflen, "pgp-%s", algorithm_name); - strlower(buf + 4); + mutt_str_strlower(buf + 4); } } }