Properly use an unused-but-set-variable. Also replace a magic number.
This commit is contained in:
parent
fe10ff49c1
commit
224acff119
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue