From 4ac9fa0d0c9a38ff73fafdcd9f2b5b56b0538bbf Mon Sep 17 00:00:00 2001 From: Jean-Frederic Clere Date: Wed, 19 Aug 2015 11:46:23 +0000 Subject: [PATCH] keep the C89-ers happy. Submitted by Norm (normw@gknw.net). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696565 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_io_set.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/http2/h2_io_set.c b/modules/http2/h2_io_set.c index 6a688b9a58..91afde8f1f 100644 --- a/modules/http2/h2_io_set.c +++ b/modules/http2/h2_io_set.c @@ -67,12 +67,13 @@ h2_io *h2_io_set_get(h2_io_set *sp, int stream_id) /* we keep the array sorted by id, so lookup can be done * by bsearch. */ + h2_io **ps; h2_io key; h2_io *pkey = &key; memset(&key, 0, sizeof(key)); key.id = stream_id; - h2_io **ps = bsearch(&pkey, sp->list->elts, sp->list->nelts, + ps = bsearch(&pkey, sp->list->elts, sp->list->nelts, sp->list->elt_size, h2_stream_id_cmp); return ps? *ps : NULL; } -- 2.40.0