Make Store::n_disks unsigned

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

Branch: refs/heads/sphinx-docs
Commit: 0dc121c1fec369691c7fcafa807ea8b50b2f766e
Parents: a58b8ec
Author: James Peach <[email protected]>
Authored: Sat Apr 27 16:09:44 2013 -0700
Committer: James Peach <[email protected]>
Committed: Sat Apr 27 16:09:44 2013 -0700

----------------------------------------------------------------------
 iocore/cache/Cache.cc  |    3 +--
 iocore/cache/I_Store.h |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0dc121c1/iocore/cache/Cache.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index bc273d3..580d49b 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -597,7 +597,6 @@ CacheProcessor::start_internal(int flags)
   start_internal_flags = flags;
   clear = !!(flags & PROCESSOR_RECONFIGURE) || auto_clear_flag;
   fix = !!(flags & PROCESSOR_FIX);
-  int i;
   start_done = 0;
   int diskok = 1;
 
@@ -610,7 +609,7 @@ CacheProcessor::start_internal(int flags)
   ink_aio_set_callback(new AIO_Callback_handler());
   Span *sd;
   config_volumes.read_config_file();
-  for (i = 0; i < theCacheStore.n_disks; i++) {
+  for (unsigned i = 0; i < theCacheStore.n_disks; i++) {
     sd = theCacheStore.disk[i];
     char path[PATH_NAME_MAX];
     int opts = DEFAULT_CACHE_OPTIONS;

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0dc121c1/iocore/cache/I_Store.h
----------------------------------------------------------------------
diff --git a/iocore/cache/I_Store.h b/iocore/cache/I_Store.h
index 55ea839..32b24c4 100644
--- a/iocore/cache/I_Store.h
+++ b/iocore/cache/I_Store.h
@@ -162,7 +162,7 @@ struct Store
   Store();
   ~Store();
 
-  int n_disks;
+  unsigned n_disks;
   Span **disk;
 
   //

Reply via email to