summaryrefslogtreecommitdiff
path: root/src/config/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/config.c')
-rw-r--r--src/config/config.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config/config.c b/src/config/config.c
index 1d5a3d2ab1c..1c49c90d0de 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -403,7 +403,7 @@ __process_value(WT_CONFIG *conf, WT_CONFIG_ITEM *value)
if (value->type == ITEM_NUM && errno == ERANGE)
return (
__config_err(conf, "Number out of range", ERANGE));
-}
+ }
return (0);
}
@@ -555,7 +555,8 @@ __wt_config_getraw(
WT_CONFIG *cparser, WT_CONFIG_ITEM *key, WT_CONFIG_ITEM *value)
{
WT_CONFIG_ITEM k, v;
- int found, ret;
+ WT_DECL_RET;
+ int found;
found = 0;
while ((ret = __wt_config_next(cparser, &k, &v)) == 0) {
@@ -580,7 +581,8 @@ __wt_config_get(WT_SESSION_IMPL *session,
const char **cfg, WT_CONFIG_ITEM *key, WT_CONFIG_ITEM *value)
{
WT_CONFIG cparser;
- int found, ret;
+ WT_DECL_RET;
+ int found;
for (found = 0; *cfg != NULL; cfg++) {
WT_RET(__wt_config_init(session, &cparser, *cfg));