diff options
author | Kevin McCarthy <kevin@8t8.us> | 2020-03-06 14:35:19 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2020-03-06 14:35:19 -0800 |
commit | 3ac6f3ea14e69b1c04d0feaea33bc37c9c1f7f0a (patch) | |
tree | 6a5c8fa2fa45eff882622ba9c8d1087e384de4f7 /autocrypt | |
parent | 435f0cdb4b8f56b974cf380a76eb317786a64f13 (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 'autocrypt')
-rw-r--r-- | autocrypt/autocrypt_acct_menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autocrypt/autocrypt_acct_menu.c b/autocrypt/autocrypt_acct_menu.c index 4d7011dd..80a82362 100644 --- a/autocrypt/autocrypt_acct_menu.c +++ b/autocrypt/autocrypt_acct_menu.c @@ -67,7 +67,7 @@ static const char *account_format_str (char *dest, size_t destlen, size_t col, int cols, char op, const char *src, const char *fmt, const char *ifstring, const char *elsestring, - unsigned long data, format_flag flags) + void *data, format_flag flags) { ENTRY *entry = (ENTRY *)data; char tmp[SHORT_STRING]; @@ -124,7 +124,7 @@ static void account_entry (char *s, size_t slen, MUTTMENU *m, int num) mutt_FormatString (s, slen, 0, MuttIndexWindow->cols, NONULL (AutocryptAcctFormat), account_format_str, - (unsigned long) entry, MUTT_FORMAT_ARROWCURSOR); + entry, MUTT_FORMAT_ARROWCURSOR); } static MUTTMENU *create_menu () |