Removing passing argument 2 of 'show_settings_str_options' discards 'const' qualifier from pointer target type [-Werror] warnngs from code

fix #131
This commit is contained in:
Surabhi Mishra 2014-10-10 13:01:56 +05:30 committed by derselbst
parent 905d9e9d26
commit 2526982f9f
2 changed files with 2 additions and 2 deletions

View file

@ -441,7 +441,7 @@ fluid_settings_set(fluid_settings_t* settings, const char *name, void* value)
/** returns 1 if the value has been registered correctly, 0 /** returns 1 if the value has been registered correctly, 0
otherwise */ otherwise */
int int
fluid_settings_register_str(fluid_settings_t* settings, char* name, char* def, int hints, fluid_settings_register_str(fluid_settings_t* settings, const char* name, const char* def, int hints,
fluid_str_update_t fun, void* data) fluid_str_update_t fun, void* data)
{ {
fluid_setting_node_t *node; fluid_setting_node_t *node;

View file

@ -37,7 +37,7 @@ typedef int (*fluid_int_update_t)(void* data, const char* name, int value);
/** returns 0 if the value has been registered correctly, non-zero /** returns 0 if the value has been registered correctly, non-zero
otherwise */ otherwise */
int fluid_settings_register_str(fluid_settings_t* settings, char* name, char* def, int hints, int fluid_settings_register_str(fluid_settings_t* settings, const char* name, const char* def, int hints,
fluid_str_update_t fun, void* data); fluid_str_update_t fun, void* data);
/** returns 0 if the value has been registered correctly, non-zero /** returns 0 if the value has been registered correctly, non-zero