apps/open_plugins cast menu id to (void*)

Change-Id: I14ece34e5ad0ffe00bbb4f7de37b1dadad3b92b4
This commit is contained in:
William Wilgus 2021-08-14 08:43:20 -04:00 committed by William Wilgus
parent 25cebf2f85
commit 2ce7c716c3
1 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ static const char* list_get_name_cb(int selected_item, void* data,
char* buf, size_t buf_len)
{
/*TODO memoize names so we don't keep reading the disk when not necessary */
if (data == &MENU_ID_MAIN)
if (data == (void*) &MENU_ID_MAIN) /* check address */
{
if (op_entry_read_name(fd_dat, selected_item))
{
@ -549,7 +549,7 @@ static const char* list_get_name_cb(int selected_item, void* data,
static int list_voice_cb(int list_index, void* data)
{
if (data == &MENU_ID_MAIN)
if (data == (void*) &MENU_ID_MAIN) /* check address */
{
if (op_entry_read_name(fd_dat, list_index))
{