Module Name: src Committed By: tsutsui Date: Sat Jun 21 02:01:21 UTC 2014
Modified Files: src/sys/arch/hp300/stand/inst: inst.c Log Message: Properly use an unused-but-set-variable. Also replace a magic number. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/arch/hp300/stand/inst/inst.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/arch/hp300/stand/inst/inst.c diff -u src/sys/arch/hp300/stand/inst/inst.c:1.18 src/sys/arch/hp300/stand/inst/inst.c:1.19 --- src/sys/arch/hp300/stand/inst/inst.c:1.18 Wed Jul 16 13:44:51 2008 +++ src/sys/arch/hp300/stand/inst/inst.c Sat Jun 21 02:01:21 2014 @@ -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 @@ disklabel_show(struct disklabel *lp) 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"); }