summaryrefslogtreecommitdiffstats
path: root/history.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 /history.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 'history.c')
-rw-r--r--history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/history.c b/history.c
index f2dde193..fdf3a113 100644
--- a/history.c
+++ b/history.c
@@ -495,7 +495,7 @@ void mutt_history_save_scratch (history_class_t hclass, const char *s)
static const char *
history_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)
{
char *match = (char *)data;
@@ -514,7 +514,7 @@ static void history_entry (char *s, size_t slen, MUTTMENU *m, int num)
char *entry = ((char **)m->data)[num];
mutt_FormatString (s, slen, 0, MuttIndexWindow->cols, "%s", history_format_str,
- (unsigned long) entry, MUTT_FORMAT_ARROWCURSOR);
+ entry, MUTT_FORMAT_ARROWCURSOR);
}
static void history_menu (char *buf, size_t buflen, char **matches, int match_count)