GUI: Fix some long-standing warnings
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Dec 2015 21:58:00 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/util/gui/file-select.c
→
src/util/gui/file-select.c
@@ -24,7 +24,7 @@ static void _cleanFiles(struct GUIMenuItemList* currentFiles) {
size_t size = GUIMenuItemListSize(currentFiles); size_t i; for (i = 1; i < size; ++i) { - free(GUIMenuItemListGetPointer(currentFiles, i)->title); + free((char*) GUIMenuItemListGetPointer(currentFiles, i)->title); } GUIMenuItemListClear(currentFiles); }@@ -126,7 +126,7 @@ if (vf) {
if (filter(vf)) { ++item; } else { - free(GUIMenuItemListGetPointer(currentFiles, item)->title); + free((char*) GUIMenuItemListGetPointer(currentFiles, item)->title); GUIMenuItemListShift(currentFiles, item, 1); } vf->close(vf);