From f7219dcaec17b935a8c5fbcb2e2911de654e93bd Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Sat, 6 Apr 2013 11:14:23 -0400 Subject: [PATCH] WIP: Fix minor C89 issue --- c_src/wterl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c_src/wterl.c b/c_src/wterl.c index 22d6ccd..6f79907 100644 --- a/c_src/wterl.c +++ b/c_src/wterl.c @@ -1550,7 +1550,8 @@ __resource_conn_dtor(ErlNifEnv *env, void *obj) WterlConnHandle *conn_handle = (WterlConnHandle *)obj; /* Free up the shared sessions and cursors. */ enif_mutex_lock(conn_handle->context_mutex); - for (int i = 0; i < conn_handle->num_contexts; i++) { + int i; + for (i = 0; i < conn_handle->num_contexts; i++) { WterlCtx *ctx = &conn_handle->contexts[i]; WT_CURSOR *cursor; kh_foreach_value(ctx->cursors, cursor, {