From: Automatic source maintenance Date: Fri, 9 May 2014 00:14:30 +0000 (-0600) Subject: SourceFormat Enforcement X-Git-Tag: SQUID_3_5_0_1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75e7198840213d3ac1f270e708945c03cf1b2d58;p=thirdparty%2Fsquid.git SourceFormat Enforcement --- diff --git a/src/redirect.cc b/src/redirect.cc index 267568091b..a1fbcc8ba7 100644 --- a/src/redirect.cc +++ b/src/redirect.cc @@ -143,14 +143,14 @@ redirectHandleReply(void *data, const HelperReply &reply) // check and parse for obsoleted Squid-2 urlgroup feature if (*result == '!') { - static int urlgroupWarning = 0; - if (!urlgroupWarning++) - debugs(85, DBG_IMPORTANT, "UPGRADE WARNING: URL rewriter using obsolete Squid-2 urlgroup feature needs updating."); - if (char *t = strchr(result+1, '!')) { - *t = '\0'; - newReply.notes.add("urlgroup", result+1); - result = t + 1; - } + static int urlgroupWarning = 0; + if (!urlgroupWarning++) + debugs(85, DBG_IMPORTANT, "UPGRADE WARNING: URL rewriter using obsolete Squid-2 urlgroup feature needs updating."); + if (char *t = strchr(result+1, '!')) { + *t = '\0'; + newReply.notes.add("urlgroup", result+1); + result = t + 1; + } } const Http::StatusCode status = static_cast(atoi(result));