From 7dd4a9773cbe873d61af162e6092942c52b69809 Mon Sep 17 00:00:00 2001 From: dsl Date: Sat, 2 Jan 2010 20:54:46 +0000 Subject: [PATCH] Fix another couple of signed v unsigned comparisons of disk block numbers. --- distrib/utils/sysinst/arch/mvme68k/md.c | 5 +++-- distrib/utils/sysinst/arch/x68k/md.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/distrib/utils/sysinst/arch/mvme68k/md.c b/distrib/utils/sysinst/arch/mvme68k/md.c index 43fc2c91a649..798fcddc4806 100644 --- a/distrib/utils/sysinst/arch/mvme68k/md.c +++ b/distrib/utils/sysinst/arch/mvme68k/md.c @@ -1,4 +1,4 @@ -/* $NetBSD: md.c,v 1.22 2009/09/19 14:57:29 abs Exp $ */ +/* $NetBSD: md.c,v 1.23 2010/01/02 20:54:46 dsl Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -135,7 +135,8 @@ int md_check_partitions(void) { /* mvme68k partitions must be in order of the range. */ - int part, start = 0, last = PART_A-1; + int part, last = PART_A-1; + uint32_t start = 0; for (part = PART_A; part < 8; part++) { if (part == PART_C) diff --git a/distrib/utils/sysinst/arch/x68k/md.c b/distrib/utils/sysinst/arch/x68k/md.c index 6d70e8b3b40f..77c66dc06ff4 100644 --- a/distrib/utils/sysinst/arch/x68k/md.c +++ b/distrib/utils/sysinst/arch/x68k/md.c @@ -1,4 +1,4 @@ -/* $NetBSD: md.c,v 1.37 2009/09/19 14:57:30 abs Exp $ */ +/* $NetBSD: md.c,v 1.38 2010/01/02 20:54:46 dsl Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -163,7 +163,8 @@ int md_check_partitions(void) { /* X68k partitions must be in order of the range. */ - int part, start = 0, last = PART_A-1; + int part, last = PART_A-1; + uint32_t start = 0; for (part = PART_A; part < 8; part++) { if (part == PART_C)