checkpolicy: fix gcc -Wsign-compare warnings

Acked-by: Steve Lawrence <slawrence@tresys.com>
This commit is contained in:
Nicolas Iooss 2014-09-14 23:41:41 +02:00 committed by Steve Lawrence
parent ae5de8ae69
commit 581d3eb128
3 changed files with 5 additions and 5 deletions

View file

@ -291,7 +291,7 @@ extern char *av_to_string(uint32_t tclass, sepol_access_vector_t av);
int display_bools()
{
int i;
uint32_t i;
for (i = 0; i < policydbp->p_bools.nprim; i++) {
printf("%s : %d\n", policydbp->p_bool_val_to_name[i],

View file

@ -701,7 +701,7 @@ int add_perm_to_class(uint32_t perm_value, uint32_t class_value)
assert(class_value >= 1);
scope = &decl->required;
if (class_value > scope->class_perms_len) {
int i;
uint32_t i;
ebitmap_t *new_map = realloc(scope->class_perms_map,
class_value * sizeof(*new_map));
if (new_map == NULL) {
@ -1225,7 +1225,7 @@ int require_cat(int pass)
static int is_scope_in_stack(scope_datum_t * scope, scope_stack_t * stack)
{
int i;
uint32_t i;
if (stack == NULL) {
return 0; /* no matching scope found */
}
@ -1482,7 +1482,7 @@ int begin_optional_else(int pass)
static int copy_requirements(avrule_decl_t * dest, scope_stack_t * stack)
{
int i;
uint32_t i;
if (stack == NULL) {
return 0;
}

View file

@ -828,7 +828,7 @@ int define_sens(void)
int define_dominance(void)
{
level_datum_t *datum;
int order;
uint32_t order;
char *id;
if (!mlspol) {