Source-Changes-HG archive

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

[src/trunk]: src/sys/stand/efiboot efiboot: Handle 9.99.100 by taking four, n...



details:   https://anonhg.NetBSD.org/src/rev/0faeec366c4a
branches:  trunk
changeset: 370624:0faeec366c4a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Sep 21 14:30:01 2022 +0000

description:
efiboot: Handle 9.99.100 by taking four, not two, digits.

We haven't used the revision part of __NetBSD_Version__ = MMmmrrpp00
in almos two decades so we're apparently reclaiming it as MMmmpppp00.

diffstat:

 sys/stand/efiboot/module.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 79146a985caa -r 0faeec366c4a sys/stand/efiboot/module.c
--- a/sys/stand/efiboot/module.c        Wed Sep 21 14:29:45 2022 +0000
+++ b/sys/stand/efiboot/module.c        Wed Sep 21 14:30:01 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: module.c,v 1.1 2020/06/21 17:24:26 jmcneill Exp $ */
+/* $NetBSD: module.c,v 1.2 2022/09/21 14:30:01 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
 #else
        const u_int vmajor = netbsd_version / 100000000;
        const u_int vminor = netbsd_version / 1000000 % 100;
-       const u_int vpatch = netbsd_version / 100 % 100;
+       const u_int vpatch = netbsd_version / 100 % 10000;
 
        if (vminor == 99) {
                snprintf(module_prefix, sizeof(module_prefix),



Home | Main Index | Thread Index | Old Index