From: Jean-Frederic Clere Date: Wed, 19 Aug 2015 11:46:23 +0000 (+0000) Subject: keep the C89-ers happy. Submitted by Norm (normw@gknw.net). X-Git-Tag: 2.5.0-alpha~2946 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ac9fa0d0c9a38ff73fafdcd9f2b5b56b0538bbf;p=apache 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 --- 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; }