mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 23:11:41 +00:00
dont discard const qualifiers
This commit is contained in:
parent
174d8551b9
commit
cc9bda442e
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue