aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/portxlate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libshouldbeinlibc/portxlate.c')
-rw-r--r--libshouldbeinlibc/portxlate.c4
1 files changed, 2 insertions, 2 deletions
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)