* [Buildroot] [git commit master] squid: don't use susv3 legacy functions
@ 2010-03-24 8:00 Peter Korsgaard
0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2010-03-24 8:00 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=754a8c96ce4bd80f284efc08d8f8e1b0d2f3bf9a
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
package/squid/squid-susv3-legacy.patch | 49 ++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
create mode 100644 package/squid/squid-susv3-legacy.patch
diff --git a/package/squid/squid-susv3-legacy.patch b/package/squid/squid-susv3-legacy.patch
new file mode 100644
index 0000000..c3343bd
--- /dev/null
+++ b/package/squid/squid-susv3-legacy.patch
@@ -0,0 +1,49 @@
+[PATCH] replace susv3 legacy functions with modern equivalents
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ src/ESIVarState.cc | 6 +++---
+ src/HttpHeaderTools.cc | 2 +-
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+Index: squid-3.0.STABLE21/src/ESIVarState.cc
+===================================================================
+--- squid-3.0.STABLE21.orig/src/ESIVarState.cc
++++ squid-3.0.STABLE21/src/ESIVarState.cc
+@@ -207,7 +207,7 @@ ESIVariableUserAgent::getProductVersion
+ {
+ char const *t;
+ int len;
+- t = index (s,'/');
++ t = strchr (s,'/');
+
+ if (!t || !*(++t))
+ return xstrdup ("");
+@@ -382,12 +382,12 @@ ESIVariableUserAgent::ESIVariableUserAge
+
+ if ((t = strstr (s, "MSIE"))) {
+ browser = ESI_BROWSER_MSIE;
+- t = index (t, ' ');
++ t = strchr (t, ' ');
+
+ if (!t)
+ browserversion = xstrdup ("");
+ else {
+- t1 = index (t, ';');
++ t1 = strchr (t, ';');
+
+ if (!t1)
+ browserversion = xstrdup (t + 1);
+Index: squid-3.0.STABLE21/src/HttpHeaderTools.cc
+===================================================================
+--- squid-3.0.STABLE21.orig/src/HttpHeaderTools.cc
++++ squid-3.0.STABLE21/src/HttpHeaderTools.cc
+@@ -357,7 +357,7 @@ httpHeaderParseQuotedString (const char
+ pos = start + 1;
+
+ while (1) {
+- if (!(end = index (pos,'"'))) {
++ if (!(end = strchr (pos,'"'))) {
+ debugs(66, 2, "failed to parse a quoted-string header field near '" << start << "'");
+ return 0;
+ }
--
1.6.3.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-24 8:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24 8:00 [Buildroot] [git commit master] squid: don't use susv3 legacy functions Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.