From: Francesco Chemolli Date: Wed, 4 Feb 2009 23:25:42 +0000 (+0100) Subject: Fixed more previously-uncaught build errors. X-Git-Tag: SQUID_3_2_0_1~1212^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c3b212b309afe1f2b3c3cd1724481b77d00f715;p=thirdparty%2Fsquid.git Fixed more previously-uncaught build errors. --- diff --git a/src/ESI.cc b/src/ESI.cc index 4962d5d85c..dda16d5056 100644 --- a/src/ESI.cc +++ b/src/ESI.cc @@ -1578,7 +1578,7 @@ esiLiteral::process (int dovars) /* Ensure variable state is clean */ while (temp.getRaw()) { - varState->feedData(temp->unsafeBuf,temp->len); + varState->feedData(temp->buf,temp->len); temp = temp->next; } @@ -2430,7 +2430,7 @@ esiEnableProcessing (HttpReply *rep) */ return 0; - if (strstr (sctusable->content.buf(), "ESI/1.0")) + if (strstr (sctusable->content.unsafeBuf(), "ESI/1.0")) rv = 1; httpHdrScTargetDestroy (sctusable); diff --git a/src/ESIAssign.cc b/src/ESIAssign.cc index 67508e1697..496bdfa8a4 100644 --- a/src/ESIAssign.cc +++ b/src/ESIAssign.cc @@ -89,7 +89,7 @@ ESIAssign::evaluateVariable() variable = NULL; if (unevaluatedVariable.size()) { - varState->feedData(unevaluatedVariable.buf(), unevaluatedVariable.size()); + varState->feedData(unevaluatedVariable.unsafeBuf(), unevaluatedVariable.size()); char const *result = varState->extractChar (); /* Consider activating this, when we want to evaluate variables to a @@ -123,7 +123,7 @@ ESIAssign::process (int dovars) if (!value) return ESI_PROCESS_COMPLETE; - varState->addVariable (name.buf(), name.size(), value); + varState->addVariable (name.unsafeBuf(), name.size(), value); value = NULL; @@ -194,7 +194,7 @@ void ESIVariableExpression::eval (ESIVarState &state, char const *subref, char const *defaultOnEmpty) const { /* XXX: Implement evaluation of the expression */ - ESISegment::ListAppend (state.getOutput(), expression.buf(), expression.size()); + ESISegment::ListAppend (state.getOutput(), expression.unsafeBuf(), expression.size()); } #endif /* USE_SQUID_ESI == 1 */ diff --git a/src/ESICustomParser.cc b/src/ESICustomParser.cc index 12b364275c..8a5ce83816 100644 --- a/src/ESICustomParser.cc +++ b/src/ESICustomParser.cc @@ -109,7 +109,7 @@ ESICustomParser::parse(char const *dataToParse, size_t const lengthOfData, bool } size_t openESITags (0); - char const *currentPos = content.buf(); + char const *currentPos = content.unsafeBuf(); size_t remainingCount = content.size(); char const *tag = NULL; @@ -302,7 +302,7 @@ char const * ESICustomParser::errorString() const { if (error.size()) - return error.buf(); + return error.unsafeBuf(); else return "Parsing error strings not implemented"; } diff --git a/src/ESISegment.cc b/src/ESISegment.cc index 8e79890b46..9ecd388384 100644 --- a/src/ESISegment.cc +++ b/src/ESISegment.cc @@ -236,5 +236,5 @@ ESISegment::dumpOne() const { String temp; temp.limitInit(buf, len); - debugs(86, 9, "ESISegment::dumpOne: \"" << temp.buf() << "\""); + debugs(86, 9, "ESISegment::dumpOne: \"" << temp.unsafeBuf() << "\""); } diff --git a/src/store.cc b/src/store.cc index 14f1a9f401..01c82ff7bb 100644 --- a/src/store.cc +++ b/src/store.cc @@ -696,9 +696,9 @@ StoreEntry::setPublicKey() #if X_ACCELERATOR_VARY vary = mem_obj->getReply()->header.getList(HDR_X_ACCELERATOR_VARY); - if (vary.buf()) { + if (vary.unsafeBuf()) { /* Again, we own this structure layout */ - rep->header.putStr(HDR_X_ACCELERATOR_VARY, vary.buf()); + rep->header.putStr(HDR_X_ACCELERATOR_VARY, vary.unsafeBuf()); vary.clean(); }