From a5f023c7e7e58583dedfd9a172efe9ef02429048 Mon Sep 17 00:00:00 2001 From: Bob Ham Date: Sat, 30 Jun 2012 23:20:31 -0300 Subject: Address gcc warnings * exec-reauth.c (exec_reauth): Change type of temp var i to unsigned int to address gcc warning. * idvec-impgids.c (idvec_merge_implied_gids) Change type of temp var i to unsigned int to address gcc warning. * idvec-impgids.c (idvec_merge_implied_gids): Change type of temp var i to unsigned int to address gcc warning. * idvec-rep.c (idvec_rep): Change type of temp var i to unsigned int to address gcc warning. * idvec-verify (idvec_verify): Change type of temp var i to unsigned int to address gcc warning. * idvec.c (idvec_merge_ids, idvec_remove): Change type of temp var i to unsigned int to address gcc warning. * portxlate.c (port_name_xlator_create, port_name_xlator_free): Change type of temp var i to unsigned int to address gcc warning. * timefmt.c (fmt_seconds): Cast width to int in test to modify frac_places to address gcc warning. * (ugids_verify_make_auth): Change type of temp var i to unsigned int to address gcc warning. --- libshouldbeinlibc/portxlate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libshouldbeinlibc/portxlate.c') diff --git a/libshouldbeinlibc/portxlate.c b/libshouldbeinlibc/portxlate.c index 291bcf3a..599fb584 100644 --- a/libshouldbeinlibc/portxlate.c +++ b/libshouldbeinlibc/portxlate.c @@ -54,7 +54,7 @@ port_name_xlator_create (mach_port_t from_task, mach_port_t to_task, x->ports = malloc (sizeof (mach_port_t) * x->to_names_len); if (x->ports) { - int i; + unsigned int i; for (i = 0; i < x->to_names_len; i++) x->ports[i] = MACH_PORT_NULL; } @@ -80,7 +80,7 @@ port_name_xlator_create (mach_port_t from_task, mach_port_t to_task, void port_name_xlator_free (struct port_name_xlator *x) { - int i; + unsigned int i; for (i = 0; i < x->to_names_len; i++) if (x->ports[i] != MACH_PORT_NULL) -- cgit v1.2.3