dont discard const qualifiers

This commit is contained in:
derselbst 2017-07-02 00:33:11 +02:00
parent 174d8551b9
commit cc9bda442e
2 changed files with 5 additions and 5 deletions

View file

@ -84,7 +84,7 @@ typedef struct {
static fluid_str_setting_t*
new_fluid_str_setting(const char* value, char* def, int hints, fluid_str_update_t fun, void* data)
new_fluid_str_setting(const char* value, const char* def, int hints, fluid_str_update_t fun, void* data)
{
fluid_str_setting_t* str;
@ -481,7 +481,7 @@ fluid_settings_register_str(fluid_settings_t* settings, const char* name, const
/** returns 1 if the value has been register correctly, zero
otherwise */
int
fluid_settings_register_num(fluid_settings_t* settings, char* name, double def,
fluid_settings_register_num(fluid_settings_t* settings, const char* name, double def,
double min, double max, int hints,
fluid_num_update_t fun, void* data)
{
@ -529,7 +529,7 @@ fluid_settings_register_num(fluid_settings_t* settings, char* name, double def,
/** returns 1 if the value has been register correctly, zero
otherwise. */
int
fluid_settings_register_int(fluid_settings_t* settings, char* name, int def,
fluid_settings_register_int(fluid_settings_t* settings, const char* name, int def,
int min, int max, int hints,
fluid_int_update_t fun, void* data)
{

View file

@ -42,13 +42,13 @@ int fluid_settings_register_str(fluid_settings_t* settings, const char* name, co
/** returns 0 if the value has been registered correctly, non-zero
otherwise */
int fluid_settings_register_num(fluid_settings_t* settings, char* name, double def,
int fluid_settings_register_num(fluid_settings_t* settings, const char* name, double def,
double min, double max, int hints,
fluid_num_update_t fun, void* data);
/** returns 0 if the value has been registered correctly, non-zero
otherwise */
int fluid_settings_register_int(fluid_settings_t* settings, char* name, int def,
int fluid_settings_register_int(fluid_settings_t* settings, const char* name, int def,
int min, int max, int hints,
fluid_int_update_t fun, void* data);