forked from len0rd/rockbox
Correct wrong usage of event callbacks all over the place. It's not supposed to return anything, and should take a data parameter.
Fixing it because correcting the event api prototypes causes many warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23301 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
872852639f
commit
774bacc692
13 changed files with 51 additions and 50 deletions
|
|
@ -568,17 +568,17 @@ static bool settings_write_config(const char* filename, int options)
|
|||
return true;
|
||||
}
|
||||
#ifndef HAVE_RTC_RAM
|
||||
static bool flush_global_status_callback(void)
|
||||
static void flush_global_status_callback(void *data)
|
||||
{
|
||||
return write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE);
|
||||
(void)data;
|
||||
write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE);
|
||||
}
|
||||
#endif
|
||||
static bool flush_config_block_callback(void)
|
||||
static void flush_config_block_callback(void *data)
|
||||
{
|
||||
bool r1, r2;
|
||||
r1 = write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE);
|
||||
r2 = settings_write_config(CONFIGFILE, SETTINGS_SAVE_CHANGED);
|
||||
return r1 || r2;
|
||||
(void)data;
|
||||
write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE);
|
||||
settings_write_config(CONFIGFILE, SETTINGS_SAVE_CHANGED);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue