summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-05-03 13:59:09 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-05-03 13:59:09 +0000
commitf1ab07fd4b2afb389f2a7c79d476dfcf95850bbe (patch)
treebaf13417d63b9c026f0e1a19079f03b2bc0f7cd8 /sys/arch/i386/stand
parent3471b508ba4da21a00eb5b42d0e64dfa368d2550 (diff)
ptrdiff_t and size_t fixes.
okay mickey@
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r--sys/arch/i386/stand/installboot/installboot.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c
index 1122c9fd72f..e3ee3ce9366 100644
--- a/sys/arch/i386/stand/installboot/installboot.c
+++ b/sys/arch/i386/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.36 2002/03/14 01:26:34 millert Exp $ */
+/* $OpenBSD: installboot.c,v 1.37 2002/05/03 13:59:08 espie Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -105,7 +105,8 @@ main(argc, argv)
struct dos_mbr mbr;
struct dos_partition *dp;
off_t startoff = 0;
- int mib[4], size;
+ int mib[4];
+ size_t size;
dev_t devno;
bios_diskinfo_t di;
@@ -224,9 +225,9 @@ main(argc, argv)
for (dp = mbr.dmbr_parts; dp < &mbr.dmbr_parts[NDOSPART]; dp++) {
if (dp->dp_size && dp->dp_typ == DOSPTYP_OPENBSD) {
startoff = (off_t)dp->dp_start * dl.d_secsize;
- fprintf(stderr, "using MBR partition %d: "
+ fprintf(stderr, "using MBR partition %ld: "
"type %d (0x%02x) offset %d (0x%x)\n",
- dp - mbr.dmbr_parts,
+ (long)(dp - mbr.dmbr_parts),
dp->dp_typ, dp->dp_typ,
dp->dp_start, dp->dp_start);
break;
@@ -368,7 +369,8 @@ loadblocknums(boot, devfd, dl)
int ndb;
u_int8_t *bt;
struct exec eh;
- int mib[4], size;
+ int mib[4];
+ size_t size;
dev_t dev;
/*