summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-08-14 08:43:20 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2021-08-14 23:27:44 +0000
commit2ce7c716c3c2e09f881d83b58bdc73cc163962cf (patch)
tree76329d49fe9c3a1bb94ddc333116882aa6d2293f
parent25cebf2f85f5467cddaec02f3084e97ba41da65e (diff)
apps/open_plugins cast menu id to (void*)
Change-Id: I14ece34e5ad0ffe00bbb4f7de37b1dadad3b92b4
-rw-r--r--apps/plugins/open_plugins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/open_plugins.c b/apps/plugins/open_plugins.c
index f9133f91bb..d479bbd31c 100644
--- a/apps/plugins/open_plugins.c
+++ b/apps/plugins/open_plugins.c
@@ -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))
{