aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-07-17 17:23:56 -0700
committerStephen Hemminger <stephen@networkplumber.org>2017-07-17 17:24:14 -0700
commit42c1aefc303fdf891fbb099ea51f00dca83ab606 (patch)
tree75d93fdb40ba21ba3551090ff8a91d52dfbe8e87
parentb69811c054a55c241ce5628a32a62486eab491e5 (diff)
downloadbridge-utils-42c1aefc303fdf891fbb099ea51f00dca83ab606.tar.gz
brctl: fix signed/unsigned comparison warnings
If built with warning enabled, Gcc would complain about comparison of signed with unsigned. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--brctl/brctl_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c
index 5f12e6f..acd66be 100644
--- a/brctl/brctl_cmd.c
+++ b/brctl/brctl_cmd.c
@@ -483,7 +483,7 @@ static const struct command commands[] = {
const struct command *command_lookup(const char *cmd)
{
- int i;
+ unsigned int i;
for (i = 0; i < sizeof(commands)/sizeof(commands[0]); i++) {
if (!strcmp(cmd, commands[i].name))
@@ -495,7 +495,7 @@ const struct command *command_lookup(const char *cmd)
void command_helpall(void)
{
- int i;
+ unsigned int i;
for (i = 0; i < sizeof(commands)/sizeof(commands[0]); i++) {
printf("\t%-10s\t%s\n", commands[i].name, commands[i].help);