summaryrefslogtreecommitdiffstats
path: root/crypt-gpgme.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-03-06 14:35:19 -0800
committerKevin McCarthy <kevin@8t8.us>2020-03-06 14:35:19 -0800
commit3ac6f3ea14e69b1c04d0feaea33bc37c9c1f7f0a (patch)
tree6a5c8fa2fa45eff882622ba9c8d1087e384de4f7 /crypt-gpgme.c
parent435f0cdb4b8f56b974cf380a76eb317786a64f13 (diff)
Change mutt_FormatString() data parameter to type void *.
All invocations pass a pointer parameter. Perhaps at one point this was like the init.h combined usage. But as with that, using an unsigned long is incorrect, and we've been lucky to get away with it. Since we don't need a union, just change it to void * to properly size the parameter.
Diffstat (limited to 'crypt-gpgme.c')
-rw-r--r--crypt-gpgme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypt-gpgme.c b/crypt-gpgme.c
index 8e04d3f2..a3c2bb6d 100644
--- a/crypt-gpgme.c
+++ b/crypt-gpgme.c
@@ -3238,7 +3238,7 @@ static const char *crypt_entry_fmt (char *dest,
const char *prefix,
const char *ifstring,
const char *elsestring,
- unsigned long data,
+ void *data,
format_flag flags)
{
char fmt[16];
@@ -3445,7 +3445,7 @@ static void crypt_entry (char *s, size_t l, MUTTMENU * menu, int num)
entry.num = num + 1;
mutt_FormatString (s, l, 0, MuttIndexWindow->cols, NONULL (PgpEntryFormat), crypt_entry_fmt,
- (unsigned long) &entry, MUTT_FORMAT_ARROWCURSOR);
+ &entry, MUTT_FORMAT_ARROWCURSOR);
}
/* Compare two addresses and the keyid to be used for sorting. */