X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-crypt%2Fpgpinvoke.c;h=b3d42a28210c683d917d787fa056a110b85ec652;hb=676b896e26b7aeef16d95aba7a5ea9322d2dc6e1;hp=38accecced8be21180a1e63696fbd3e7e5a2de98;hpb=108f3c7ab59844591f7540347914ea57be5245e2;p=apps%2Fmadmutt.git diff --git a/lib-crypt/pgpinvoke.c b/lib-crypt/pgpinvoke.c index 38accec..b3d42a2 100644 --- a/lib-crypt/pgpinvoke.c +++ b/lib-crypt/pgpinvoke.c @@ -11,33 +11,12 @@ * is almost entirely format based. */ -#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 -#include "mutt.h" #include "mutt_idna.h" #include "pgp.h" @@ -55,14 +34,11 @@ struct pgp_command_context { }; -const char *_mutt_fmt_pgp_command (char *dest, - size_t destlen, - char op, - const char *src, - const char *prefix, - const char *ifstring, - const char *elsestring, - unsigned long data, format_flag flags) +static const char * +_mutt_fmt_pgp_command(char *dest, ssize_t destlen, + char op, const char *src, const char *prefix, + const char *ifstring, const char *elsestring, + unsigned long data, format_flag flags) { char fmt[16]; struct pgp_command_context *cctx = (struct pgp_command_context *) data; @@ -141,12 +117,12 @@ const char *_mutt_fmt_pgp_command (char *dest, return (src); } -void mutt_pgp_command (char *d, size_t dlen, struct pgp_command_context *cctx, - const char *fmt) +static void +mutt_pgp_command(char *d, ssize_t dlen, struct pgp_command_context *cctx, + const char *fmt) { mutt_FormatString (d, dlen, NONULL (fmt), _mutt_fmt_pgp_command, (unsigned long) cctx, 0); - debug_print (2, ("%s\n", d)); } /*