summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-04-25 22:13:14 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-04-25 22:13:14 +0000
commit9b937e7a783db041ee1283610937f2890cf2be53 (patch)
tree7050b5168e792e961fda2d783172e6c9962e7536
parent77e7cee03df5a7285f8d9ded75bd6c0687e8939d (diff)
sysctl wants size_t.
-rw-r--r--sbin/fdisk/disk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/fdisk/disk.c b/sbin/fdisk/disk.c
index b3625774b34..7d48cd711e9 100644
--- a/sbin/fdisk/disk.c
+++ b/sbin/fdisk/disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disk.c,v 1.14 2002/01/18 08:38:26 kjell Exp $ */
+/* $OpenBSD: disk.c,v 1.15 2002/04/25 22:13:13 espie Exp $ */
/*
* Copyright (c) 1997, 2001 Tobias Weingartner
@@ -123,7 +123,8 @@ DISK_getbiosmetrics(name)
bios_diskinfo_t di;
DISK_metrics *bm;
struct stat st;
- int mib[4], size, fd;
+ int mib[4], fd;
+ size_t size;
dev_t devno;
if ((fd = DISK_open(name, O_RDONLY)) == -1)