trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [2/2] git commit: TS-2891: Change status code usage to int to avoid clang warning
Date Wed, 18 Jun 2014 22:13:40 GMT
TS-2891: Change status code usage to int to avoid clang warning


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

Branch: refs/heads/master
Commit: eab97f12055a00c544ba0c1f3c17f48847e33a90
Parents: d3879b0
Author: Phil Sorber <sorber@apache.org>
Authored: Wed Jun 18 16:01:37 2014 -0600
Committer: Phil Sorber <sorber@apache.org>
Committed: Wed Jun 18 16:01:37 2014 -0600

----------------------------------------------------------------------
 plugins/experimental/remap_stats/remap_stats.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/eab97f12/plugins/experimental/remap_stats/remap_stats.c
----------------------------------------------------------------------
diff --git a/plugins/experimental/remap_stats/remap_stats.c b/plugins/experimental/remap_stats/remap_stats.c
index f0fe80f..5f55cac 100644
--- a/plugins/experimental/remap_stats/remap_stats.c
+++ b/plugins/experimental/remap_stats/remap_stats.c
@@ -162,7 +162,7 @@ handle_txn_close(TSCont cont, TSEvent event ATS_UNUSED, void *edata)
     TSHttpTxn txn = (TSHttpTxn) edata;
     config_t *config;
     void *txnd;
-    TSHttpStatus status_code = 0;
+    int status_code = 0;
     TSMBuffer buf;
     TSMLoc hdr_loc;
     uint64_t out_bytes, in_bytes;
@@ -201,7 +201,7 @@ handle_txn_close(TSCont cont, TSEvent event ATS_UNUSED, void *edata)
 
             if (TSHttpTxnClientRespGet(txn, &buf, &hdr_loc) == TS_SUCCESS)
             {
-                status_code = TSHttpHdrStatusGet(buf, hdr_loc);
+                status_code = (int)TSHttpHdrStatusGet(buf, hdr_loc);
                 TSHandleMLocRelease(buf, TS_NULL_MLOC, hdr_loc);
 
                 if (status_code < 200)


Mime
View raw message