Updated Branches:
  refs/heads/master 44052e9e8 -> c43eb72de

TS-1314: fix signed/unsigned warnings


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

Branch: refs/heads/master
Commit: c43eb72de958148080fb8395e397b78efb74ce8e
Parents: 44052e9
Author: James Peach <[email protected]>
Authored: Tue Jul 10 09:01:19 2012 -0700
Committer: James Peach <[email protected]>
Committed: Tue Jul 10 09:01:19 2012 -0700

----------------------------------------------------------------------
 lib/ts/ink_args.cc |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c43eb72d/lib/ts/ink_args.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_args.cc b/lib/ts/ink_args.cc
index c4ac0d6..c2a36e7 100644
--- a/lib/ts/ink_args.cc
+++ b/lib/ts/ink_args.cc
@@ -105,9 +105,8 @@ process_arg(const ArgumentDescription * 
argument_descriptions,
 void
 show_argument_configuration(const ArgumentDescription * argument_descriptions, 
unsigned n_argument_descriptions)
 {
-  int i = 0;
   printf("Argument Configuration\n");
-  for (i = 0; i < n_argument_descriptions; i++) {
+  for (unsigned i = 0; i < n_argument_descriptions; i++) {
     if (argument_descriptions[i].type) {
       printf("  %-34s ", argument_descriptions[i].description);
       switch (argument_descriptions[i].type[0]) {
@@ -212,7 +211,7 @@ usage(const ArgumentDescription * argument_descriptions, 
unsigned n_argument_des
   else
     fprintf(stderr, "Usage: %s [--SWITCH [ARG]]\n", program_name);
   fprintf(stderr, "  switch__________________type__default___description\n");
-  for (int i = 0; i < n_argument_descriptions; i++) {
+  for (unsigned i = 0; i < n_argument_descriptions; i++) {
     if (!argument_descriptions[i].description)
       continue;
     fprintf(stderr, "  -%c, --%-17s %s",

Reply via email to