Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/stand/efiboot avoid sign/unsigned issue and for NUMNAMES...
details: https://anonhg.NetBSD.org/src/rev/052f5b786521
branches: trunk
changeset: 445436:052f5b786521
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Oct 29 05:15:21 2018 +0000
description:
avoid sign/unsigned issue and for NUMNAMES to an integer when it is
compared against a value that may be -1.
fixes autoboot when boot-file is set. (serves me right for removing
code that looked odd when it was tested :-)
diffstat:
sys/stand/efiboot/boot.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 17b4c507b175 -r 052f5b786521 sys/stand/efiboot/boot.c
--- a/sys/stand/efiboot/boot.c Mon Oct 29 01:27:39 2018 +0000
+++ b/sys/stand/efiboot/boot.c Mon Oct 29 05:15:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.11 2018/10/26 20:56:35 mrg Exp $ */
+/* $NetBSD: boot.c,v 1.12 2018/10/29 05:15:21 mrg Exp $ */
/*-
* Copyright (c) 2016 Kimihiro Nonaka <nonaka%netbsd.org@localhost>
@@ -351,7 +351,7 @@
else
currname = 0;
- for (; currname < NUMNAMES; currname++) {
+ for (; currname < (int)NUMNAMES; currname++) {
if (currname >= 0)
set_bootfile(names[currname]);
printf("booting %s - starting in ", bootfile);
Home |
Main Index |
Thread Index |
Old Index