From 16da54931e776129744b214f20cf9bf6feb613d9 Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Sun, 1 May 2005 09:44:50 +0000 Subject: [PATCH] Fix signed vs unsigned warning. --- sys/geom/geom_pc98_enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/geom/geom_pc98_enc.c b/sys/geom/geom_pc98_enc.c index 04de22043677..cf0f7f3fe7bc 100644 --- a/sys/geom/geom_pc98_enc.c +++ b/sys/geom/geom_pc98_enc.c @@ -35,7 +35,7 @@ void pc98_partition_dec(void const *pp, struct pc98_partition *d) { unsigned char const *ptr = pp; - int i; + u_int i; d->dp_mid = ptr[0]; d->dp_sid = ptr[1]; @@ -58,7 +58,7 @@ void pc98_partition_enc(void *pp, struct pc98_partition *d) { unsigned char *ptr = pp; - int i; + u_int i; ptr[0] = d->dp_mid; ptr[1] = d->dp_sid;