This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit ed8442cd authored by alex@thinkpad's avatar alex@thinkpad
Browse files

config.h: require const char * for config_flag_file_setting_save/load

--HG--
branch : lua_fix
parent 1324f51b5e85
......@@ -280,13 +280,13 @@ error:
int config_autosave = 1;
int config_flag_file_setting_load(char* file)
int config_flag_file_setting_load(const char * file)
{
uint32_t size;
return ( FIO_GetFileSize( file, &size ) == 0 );
}
void config_flag_file_setting_save(char* file, int setting)
void config_flag_file_setting_save(const char * file, int setting)
{
FIO_RemoveFile(file);
if (setting)
......
......@@ -147,7 +147,7 @@ void config_save_at_shutdown(); /* CBR */
void config_load();
/* simple boolean settings that live outside of config files (just by presence of a file) */
int config_flag_file_setting_load(char* file);
void config_flag_file_setting_save(char* file, int setting);
int config_flag_file_setting_load(const char * file);
void config_flag_file_setting_save(const char * file, int setting);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment