Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/dev Use proper RAW_PART macro rather than a m...
details: https://anonhg.NetBSD.org/src/rev/79936df177eb
branches: trunk
changeset: 372468:79936df177eb
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Nov 30 17:42:20 2022 +0000
description:
Use proper RAW_PART macro rather than a magic number.
diffstat:
sys/arch/hp300/dev/rd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 71df771cfb22 -r 79936df177eb sys/arch/hp300/dev/rd.c
--- a/sys/arch/hp300/dev/rd.c Wed Nov 30 17:39:12 2022 +0000
+++ b/sys/arch/hp300/dev/rd.c Wed Nov 30 17:42:20 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rd.c,v 1.119 2022/11/30 17:39:12 tsutsui Exp $ */
+/* $NetBSD: rd.c,v 1.120 2022/11/30 17:42:20 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.119 2022/11/30 17:39:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.120 2022/11/30 17:42:20 tsutsui Exp $");
#include "opt_useleds.h"
@@ -790,7 +790,7 @@
pi = lp->d_partitions;
printf("%s: WARNING: %s\n", device_xname(sc->sc_dev), msg);
- pi[2].p_size = rdidentinfo[sc->sc_type].ri_nblocks;
+ pi[RAW_PART].p_size = rdidentinfo[sc->sc_type].ri_nblocks;
/* XXX reset other info since readdisklabel screws with it */
lp->d_npartitions = 3;
pi[0].p_size = 0;
Home |
Main Index |
Thread Index |
Old Index