Updated Branches: refs/heads/master c43eb72de -> 4a3d8087c
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/4a3d8087 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/4a3d8087 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/4a3d8087 Branch: refs/heads/master Commit: 4a3d8087cfe5e5b773d388a30782e46c4e167745 Parents: c43eb72 Author: James Peach <[email protected]> Authored: Tue Jul 10 09:12:57 2012 -0700 Committer: James Peach <[email protected]> Committed: Tue Jul 10 09:12:57 2012 -0700 ---------------------------------------------------------------------- proxy/Main.cc | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4a3d8087/proxy/Main.cc ---------------------------------------------------------------------- diff --git a/proxy/Main.cc b/proxy/Main.cc index 4bb6573..2fdd44a 100644 --- a/proxy/Main.cc +++ b/proxy/Main.cc @@ -737,7 +737,7 @@ static int cmd_index(char *p) { p += strspn(p, " \t"); - for (int c = 0; c < SIZE(commands); c++) { + for (unsigned c = 0; c < SIZE(commands); c++) { const char *l = commands[c].n; while (l) { const char *s = strchr(l, '/'); @@ -755,16 +755,15 @@ cmd_index(char *p) static int cmd_help(char *cmd) { - int i; - (void) cmd; printf("HELP\n\n"); cmd = skip(cmd, true); if (!cmd) { - for (i = 0; i < SIZE(commands); i++) { + for (unsigned i = 0; i < SIZE(commands); i++) { printf("%15s %s\n", commands[i].n, commands[i].d); } } else { + int i; if ((i = cmd_index(cmd)) < 0) { printf("\nno help found for: %s\n", cmd); return CMD_FAILED;
