From 4cc83a68764fa8aa524b0ca9dbc11ea199d78f8f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 20 May 2011 17:10:15 -0700 Subject: [PATCH] crush: fix signedness warnings Signed-off-by: Sage Weil --- src/crush/builder.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crush/builder.c b/src/crush/builder.c index 28fa3cb5b2f..c3382692c99 100644 --- a/src/crush/builder.c +++ b/src/crush/builder.c @@ -549,7 +549,7 @@ int crush_bucket_add_item(struct crush_bucket *b, int item, int weight) int crush_remove_uniform_bucket_item(struct crush_bucket_uniform *bucket, int item) { - int i, j; + unsigned i, j; int newsize; for (i = 0; i < bucket->h.size; i++) @@ -570,7 +570,7 @@ int crush_remove_uniform_bucket_item(struct crush_bucket_uniform *bucket, int it int crush_remove_list_bucket_item(struct crush_bucket_list *bucket, int item) { - int i, j; + unsigned i, j; int newsize; int weight; @@ -598,8 +598,8 @@ int crush_remove_list_bucket_item(struct crush_bucket_list *bucket, int item) int crush_remove_tree_bucket_item(struct crush_bucket_tree *bucket, int item) { - int i; - int newsize; + unsigned i; + unsigned newsize; for (i = 0; i < bucket->h.size; i++) { int node; @@ -655,7 +655,7 @@ int crush_remove_tree_bucket_item(struct crush_bucket_tree *bucket, int item) int crush_remove_straw_bucket_item(struct crush_bucket_straw *bucket, int item) { int newsize = bucket->h.size - 1; - int i, j; + unsigned i, j; for (i = 0; i < bucket->h.size; i++) { if (bucket->h.items[i] == item) { -- 2.47.3