diff options
author | Haru <haru@dotalux.com> | 2016-11-19 18:39:24 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-11-19 21:08:11 +0100 |
commit | 564cf8ec2d295ccec0791f21031be7a93c78bef9 (patch) | |
tree | 766d830fdb2a2045638dab7b2df60421f7547654 /src/test | |
parent | ddd36bc9c37f0ee946441b953bb2bd89cbe70b2e (diff) | |
download | hercules-564cf8ec2d295ccec0791f21031be7a93c78bef9.tar.gz hercules-564cf8ec2d295ccec0791f21031be7a93c78bef9.tar.bz2 hercules-564cf8ec2d295ccec0791f21031be7a93c78bef9.tar.xz hercules-564cf8ec2d295ccec0791f21031be7a93c78bef9.zip |
Add fixed-size versions of the _int64 libconfig getters/setters
As we use int64 (instead of long long int) through the code, it's
preferable if our libconfig interface does the same, avoiding us to
create temporary interchange variables for that purpose.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_libconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_libconfig.c b/src/test/test_libconfig.c index e0a470e21..73466ec2b 100644 --- a/src/test/test_libconfig.c +++ b/src/test/test_libconfig.c @@ -366,8 +366,8 @@ static const char *test_libconfig_setting_get(void) static const char *test_libconfig_set(void) { - //int (*setting_set_int) (struct config_setting_t *setting ,int value); - //int (*setting_set_int64) (struct config_setting_t *setting, long long value); + //int (*setting_set_int) (struct config_setting_t *setting, int value); + //int (*setting_set_int64) (struct config_setting_t *setting, int64 value); //int (*setting_set_float) (struct config_setting_t *setting, double value); //int (*setting_set_bool) (struct config_setting_t *setting, int value); //int (*setting_set_string) (struct config_setting_t *setting, const char *value); @@ -818,7 +818,7 @@ int do_init(int argc, char **argv) //int (*setting_set_format) (struct config_setting_t *setting, short format); //short (*setting_get_format) (const struct config_setting_t *setting); //struct config_setting_t * (*setting_set_int_elem) (struct config_setting_t *setting, int idx, int value); - //struct config_setting_t * (*setting_set_int64_elem) (struct config_setting_t *setting, int idx, long long value); + //struct config_setting_t * (*setting_set_int64_elem) (struct config_setting_t *setting, int idx, int64 value); //struct config_setting_t * (*setting_set_float_elem) (struct config_setting_t *setting, int idx, double value); //struct config_setting_t * (*setting_set_bool_elem) (struct config_setting_t *setting, int idx, int value); //struct config_setting_t * (*setting_set_string_elem) (struct config_setting_t *setting, int idx, const char *value); |