trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r1202389 - /trafficserver/plugins/trunk/buffer_upload/buffer_upload.cc
Date Tue, 15 Nov 2011 19:26:50 GMT
Author: bcall
Date: Tue Nov 15 19:26:49 2011
New Revision: 1202389

URL: http://svn.apache.org/viewvc?rev=1202389&view=rev
Log:
Fixed a couple issues with using a newer compiler.  Should now return
strstr to a const char* and wanted more parentheses in the conditional.
[bcall@snowball ~]$ gcc --version
gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)

Modified:
    trafficserver/plugins/trunk/buffer_upload/buffer_upload.cc

Modified: trafficserver/plugins/trunk/buffer_upload/buffer_upload.cc
URL: http://svn.apache.org/viewvc/trafficserver/plugins/trunk/buffer_upload/buffer_upload.cc?rev=1202389&r1=1202388&r2=1202389&view=diff
==============================================================================
--- trafficserver/plugins/trunk/buffer_upload/buffer_upload.cc (original)
+++ trafficserver/plugins/trunk/buffer_upload/buffer_upload.cc Tue Nov 15 19:26:49 2011
@@ -628,9 +628,9 @@ convert_url_func(TSMBuffer req_bufp, TSM
 
   // for now we assume the <upload proxy service domain> in the format is the hostname
   // but this needs to be verified later
-  if (NOT_VALID_PTR(str) || !strncmp(str, hostname, len) && strlen(hostname) == (size_t)len)
{
-    char *slash;
-    char *colon;
+  if ((NOT_VALID_PTR(str) || !strncmp(str, hostname, len)) && strlen(hostname) ==
(size_t)len) {
+    const char *slash;
+    const char *colon;
     //if (VALID_PTR(str))
     //  TSHandleStringRelease(req_bufp, url_loc, str);
     str = TSUrlPathGet(req_bufp, url_loc, &len);



Mime
View raw message