From a16b2848ef56f57db32573099981de6cdaaf22b7 Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 25 Feb 2026 20:41:19 +0000 Subject: [PATCH] fix c99-ism in nsock test --- nsock/tests/ghheaps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nsock/tests/ghheaps.c b/nsock/tests/ghheaps.c index 982b55694..2b3ae75d0 100644 --- a/nsock/tests/ghheaps.c +++ b/nsock/tests/ghheaps.c @@ -47,7 +47,8 @@ void gh_heap_verify(gh_heap_t *heap) { gh_hnode_t *a, *b, *c; unsigned int bi, ci; unsigned int count = gh_heap_count(heap); - for (unsigned int i=0; i < heap->count; i++) { + unsigned int i; + for (i=0; i < heap->count; i++) { a = gh_heap_find(heap, i); bi = (i << 1) + 1; assert(a->index == i);