Module Name: src
Committed By: mrg
Date: Mon Oct 29 05:15:21 UTC 2018
Modified Files:
src/sys/stand/efiboot: boot.c
Log Message:
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 :-)
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/stand/efiboot/boot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/stand/efiboot/boot.c
diff -u src/sys/stand/efiboot/boot.c:1.11 src/sys/stand/efiboot/boot.c:1.12
--- src/sys/stand/efiboot/boot.c:1.11 Fri Oct 26 20:56:35 2018
+++ src/sys/stand/efiboot/boot.c Mon Oct 29 05:15:21 2018
@@ -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 <[email protected]>
@@ -351,7 +351,7 @@ boot(void)
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);