Fix a couple of compiler warnings on the Alpha. Pointed out by Tim Rightnour.
This commit is contained in:
parent
4622761326
commit
4882ae464f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rf_netbsdkintf.c,v 1.17 1999/04/07 14:17:10 oster Exp $ */
|
||||
/* $NetBSD: rf_netbsdkintf.c,v 1.18 1999/04/12 19:39:59 oster Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
@ -1863,14 +1863,14 @@ raidgetdisklabel(dev)
|
||||
if (lp->d_secperunit != rs->sc_size)
|
||||
printf("WARNING: %s: "
|
||||
"total sector size in disklabel (%d) != "
|
||||
"the size of raid (%d)\n", rs->sc_xname,
|
||||
lp->d_secperunit, rs->sc_size);
|
||||
"the size of raid (%ld)\n", rs->sc_xname,
|
||||
lp->d_secperunit, (long) rs->sc_size);
|
||||
for (i = 0; i < lp->d_npartitions; i++) {
|
||||
pp = &lp->d_partitions[i];
|
||||
if (pp->p_offset + pp->p_size > rs->sc_size)
|
||||
printf("WARNING: %s: end of partition `%c' "
|
||||
"exceeds the size of raid (%d)\n",
|
||||
rs->sc_xname, 'a' + i, rs->sc_size);
|
||||
"exceeds the size of raid (%ld)\n",
|
||||
rs->sc_xname, 'a' + i, (long) rs->sc_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user