apps/open_plugins cast menu id to (void*)
Change-Id: I14ece34e5ad0ffe00bbb4f7de37b1dadad3b92b4
This commit is contained in:
parent
25cebf2f85
commit
2ce7c716c3
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue