From: Cliff Woolley Date: Thu, 28 Feb 2002 23:24:08 +0000 (+0000) Subject: Use the new APR_BRIGADE_PREPEND() macro X-Git-Tag: 2.0.33~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e96865b046f958583e8b7d241eb47f2b86b8e4a4;p=thirdparty%2Fapache%2Fhttpd.git Use the new APR_BRIGADE_PREPEND() macro git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93650 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 45a7e70ec5d..60880601642 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -447,16 +447,7 @@ static apr_bucket *find_start_sequence(apr_bucket *dptr, include_ctx_t *ctx, /* False alarm... */ - if (!APR_BRIGADE_EMPTY(ctx->ssi_tag_brigade)) { - for (;;) { - apr_bucket *e = APR_BRIGADE_LAST(ctx->ssi_tag_brigade); - if (e == APR_BRIGADE_SENTINEL(ctx->ssi_tag_brigade)) { - break; - } - APR_BUCKET_REMOVE(e); - APR_BRIGADE_INSERT_HEAD(bb, e); - } - } + APR_BRIGADE_PREPEND(bb, ctx->ssi_tag_brigade); ctx->state = PRE_HEAD; }