make default for ini_get_double a double

This commit is contained in:
Sascha Kruse 2012-10-20 08:49:18 +02:00
parent eb5e8fb537
commit 66a5845ecc
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ int ini_get_int(char *section, char *key, int def)
return atoi(value); return atoi(value);
} }
double ini_get_double(char *section, char *key, int def) double ini_get_double(char *section, char *key, double def)
{ {
char *value = get_value(section, key); char *value = get_value(section, key);
if (value == NULL) if (value == NULL)

View File

@ -7,7 +7,7 @@
int load_ini_file(FILE *); int load_ini_file(FILE *);
char *ini_get_string(char *section, char *key, const char *def); char *ini_get_string(char *section, char *key, const char *def);
int ini_get_int(char *section, char *key, int def); int ini_get_int(char *section, char *key, int def);
double ini_get_double(char *section, char *key, int def); double ini_get_double(char *section, char *key, double def);
int ini_get_bool(char *section, char *key, int def); int ini_get_bool(char *section, char *key, int def);
void free_ini(void); void free_ini(void);