Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/stand/inst Properly use an unused-but-set-var...
details: https://anonhg.NetBSD.org/src/rev/c507e7051b41
branches: trunk
changeset: 330072:c507e7051b41
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 21 02:01:21 2014 +0000
description:
Properly use an unused-but-set-variable. Also replace a magic number.
diffstat:
sys/arch/hp300/stand/inst/inst.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 9f98b9e17e6e -r c507e7051b41 sys/arch/hp300/stand/inst/inst.c
--- a/sys/arch/hp300/stand/inst/inst.c Fri Jun 20 15:22:01 2014 +0000
+++ b/sys/arch/hp300/stand/inst/inst.c Sat Jun 21 02:01:21 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inst.c,v 1.18 2008/07/16 13:44:51 tsutsui Exp $ */
+/* $NetBSD: inst.c,v 1.19 2014/06/21 02:01:21 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -485,8 +485,8 @@
printf(" size offset\n");
pp = lp->d_partitions;
for (i = 0; i < lp->d_npartitions; i++) {
- printf("%c: %d, %d\n", 97 + i, lp->d_partitions[i].p_size,
- lp->d_partitions[i].p_offset);
+ printf("%c: %d, %d\n", 'a' + i, pp[i].p_size,
+ pp[i].p_offset);
}
printf("\n");
}
Home |
Main Index |
Thread Index |
Old Index