You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2014/03/12 00:20:55 UTC

git commit: TS-2623: unsigned comparison build fix

Repository: trafficserver
Updated Branches:
  refs/heads/master f8619248d -> 44a826fe0


TS-2623: unsigned comparison build fix


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/44a826fe
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/44a826fe
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/44a826fe

Branch: refs/heads/master
Commit: 44a826fe01b64a0dd81e1e77cfab957a7085922c
Parents: f861924
Author: James Peach <jp...@apache.org>
Authored: Tue Mar 11 16:20:02 2014 -0700
Committer: James Peach <jp...@apache.org>
Committed: Tue Mar 11 16:20:02 2014 -0700

----------------------------------------------------------------------
 plugins/cacheurl/cacheurl.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/44a826fe/plugins/cacheurl/cacheurl.cc
----------------------------------------------------------------------
diff --git a/plugins/cacheurl/cacheurl.cc b/plugins/cacheurl/cacheurl.cc
index daeadf9..bf7bfe0 100644
--- a/plugins/cacheurl/cacheurl.cc
+++ b/plugins/cacheurl/cacheurl.cc
@@ -137,8 +137,6 @@ static int regex_compile(regex_info **buf, char *pattern, char *replacement) {
     int *tokens;
     int *tokenoffset;
 
-    int i;
-
     int status = 1;      /* Status (return value) of the function */
 
     regex_info *info = (regex_info *)TSmalloc(sizeof(regex_info));
@@ -157,7 +155,7 @@ static int regex_compile(regex_info **buf, char *pattern, char *replacement) {
     if (status) {
         tokens = (int *)TSmalloc(sizeof(int) * TOKENCOUNT);
         tokenoffset = (int *)TSmalloc(sizeof(int) * TOKENCOUNT);
-        for (i=0; i<strlen(replacement); i++) {
+        for (unsigned i = 0; i<strlen(replacement); i++) {
             if (replacement[i] == '$') {
                 if (tokcount >= TOKENCOUNT) {
                     TSError("[%s] Error: too many tokens in replacement "