trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject [10/21] git commit: TS-1314: fix signed/unsigned warnings
Date Fri, 21 Sep 2012 10:04:40 GMT
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/8372e68b
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8372e68b
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8372e68b

Branch: refs/heads/3.2.x
Commit: 8372e68b76afa8e0f4409851b0c331e60ed971b3
Parents: 28508a4
Author: James Peach <jpeach@apache.org>
Authored: Tue Jul 10 09:01:19 2012 -0700
Committer: Igor Galić <i.galic@brainsware.org>
Committed: Fri Sep 21 08:53:34 2012 +0200

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8372e68b/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",


Mime
View raw message