X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-crypt%2Fgnupgparse.c;h=a2d854917ba30bbda575215f244d6366b3fe3636;hp=f2a105cda8077b78cc12bd874c6e5f00cbe841aa;hb=9468c36e7656e50a91f759e3f5498b7f86dbec30;hpb=23e6291cb5d5b4cd2008403d8b628007fd75ff23 diff --git a/lib-crypt/gnupgparse.c b/lib-crypt/gnupgparse.c index f2a105c..a2d8549 100644 --- a/lib-crypt/gnupgparse.c +++ b/lib-crypt/gnupgparse.c @@ -18,32 +18,15 @@ * */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include -#include +#include #include +#include +#include -#include "mutt.h" #include "pgp.h" #include "charset.h" - /**************** * Read the GNUPG keys. For now we read the complete keyring by * calling gnupg in a special mode. @@ -81,7 +64,7 @@ static void fix_uid (char *uid) } *d = '\0'; - if (_chs && (cd = mutt_iconv_open (_chs, "utf-8", 0)) != (iconv_t) - 1) { + if (_chs && (cd = mutt_iconv_open (_chs, "utf-8", 0)) != MUTT_ICONV_ERROR) { int n = s - uid + 1; /* chars available in original buffer */ char *buf; const char *ib; @@ -327,7 +310,7 @@ pgp_key_t pgp_get_candidates (pgp_ring_t keyring, string_list_t * hints) if (ferror (fp)) mutt_perror ("fgets"); - fclose (fp); + m_fclose(&fp); mutt_wait_filter (thepid); close (devnull);