summaryrefslogtreecommitdiff
path: root/apps/gui/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 332459c57f..9b139dd47c 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -827,10 +827,10 @@ void simplelist_addline(int line_number, const char *fmt, ...)
827 va_end(ap); 827 va_end(ap);
828} 828}
829 829
830static char* simplelist_static_getname(int item, 830static const char* simplelist_static_getname(int item,
831 void * data, 831 void * data,
832 char *buffer, 832 char *buffer,
833 size_t buffer_len) 833 size_t buffer_len)
834{ 834{
835 (void)data; (void)buffer; (void)buffer_len; 835 (void)data; (void)buffer; (void)buffer_len;
836 return simplelist_text[item]; 836 return simplelist_text[item];
@@ -841,7 +841,7 @@ bool simplelist_show_list(struct simplelist_info *info)
841 struct gui_synclist lists; 841 struct gui_synclist lists;
842 int action, old_line_count = simplelist_line_count; 842 int action, old_line_count = simplelist_line_count;
843 int oldbars = viewportmanager_set_statusbar(VP_SB_ALLSCREENS); 843 int oldbars = viewportmanager_set_statusbar(VP_SB_ALLSCREENS);
844 char* (*getname)(int item, void * data, char *buffer, size_t buffer_len); 844 const char* (*getname)(int item, void * data, char *buffer, size_t buffer_len);
845 int wrap = LIST_WRAP_UNLESS_HELD; 845 int wrap = LIST_WRAP_UNLESS_HELD;
846 if (info->get_name) 846 if (info->get_name)
847 getname = info->get_name; 847 getname = info->get_name;