From 9dd091e4f4cfa577bf6ee69089a7dfaea1cd2dc4 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 18 Feb 2011 14:08:22 +0000 Subject: [PATCH] Support 64bit ints in config --- WHATS_NEW | 1 + lib/config/config.c | 6 ++++++ lib/config/config.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index ba89ece20..fd1c2e849 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.85 - =================================== + Add function to read 64bit ints from config find_config_tree_int64. Fix to make resuming exclusive cluster mirror use local target type. Version 2.02.84 - 9th February 2011 diff --git a/lib/config/config.c b/lib/config/config.c index ffa9fd6d4..237c61020 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -1049,6 +1049,12 @@ int find_config_tree_int(struct cmd_context *cmd, const char *path, return (int) _find_config_int64(cmd->cft_override ? cmd->cft_override->root : NULL, cmd->cft->root, path, (int64_t) fail); } +int64_t find_config_tree_int64(struct cmd_context *cmd, const char *path, int64_t fail) +{ + return _find_config_int64(cmd->cft_override ? cmd->cft_override->root : NULL, + cmd->cft->root, path, fail); +} + float find_config_tree_float(struct cmd_context *cmd, const char *path, float fail) { diff --git a/lib/config/config.h b/lib/config/config.h index f70deb011..ae0c6e613 100644 --- a/lib/config/config.h +++ b/lib/config/config.h @@ -95,6 +95,8 @@ const char *find_config_tree_str(struct cmd_context *cmd, const char *path, const char *fail); int find_config_tree_int(struct cmd_context *cmd, const char *path, int fail); +int64_t find_config_tree_int64(struct cmd_context *cmd, const char *path, + int64_t fail); float find_config_tree_float(struct cmd_context *cmd, const char *path, float fail); -- 2.43.5