Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst/arch Fix another couple of signed v un...



details:   https://anonhg.NetBSD.org/src/rev/c42227309e66
branches:  trunk
changeset: 750486:c42227309e66
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Jan 02 20:54:46 2010 +0000

description:
Fix another couple of signed v unsigned comparisons of disk block numbers.

diffstat:

 distrib/utils/sysinst/arch/mvme68k/md.c |  5 +++--
 distrib/utils/sysinst/arch/x68k/md.c    |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r d5416beba1c5 -r c42227309e66 distrib/utils/sysinst/arch/mvme68k/md.c
--- a/distrib/utils/sysinst/arch/mvme68k/md.c   Sat Jan 02 19:27:41 2010 +0000
+++ b/distrib/utils/sysinst/arch/mvme68k/md.c   Sat Jan 02 20:54:46 2010 +0000
@@ -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 @@
 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 -r d5416beba1c5 -r c42227309e66 distrib/utils/sysinst/arch/x68k/md.c
--- a/distrib/utils/sysinst/arch/x68k/md.c      Sat Jan 02 19:27:41 2010 +0000
+++ b/distrib/utils/sysinst/arch/x68k/md.c      Sat Jan 02 20:54:46 2010 +0000
@@ -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 @@
 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)



Home | Main Index | Thread Index | Old Index