summaryrefslogtreecommitdiff
path: root/sbin/fdisk/part.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-08-03 09:22:04 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-08-03 09:22:04 +0000
commit85c84ba9cd61ff4de8f4186927df8dce84c95fb6 (patch)
tree34dec2ab1d45ea908745d1d275df76d7ed022ac5 /sbin/fdisk/part.h
parent9b1aa772395e0900e74204af7ab100140c4c120f (diff)
Handle geometry parameters as unsigned quantities, getting rid of negative
number of sectors on large disks and other similar problems. ok toby@ tom@ deraadt@
Diffstat (limited to 'sbin/fdisk/part.h')
-rw-r--r--sbin/fdisk/part.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/fdisk/part.h b/sbin/fdisk/part.h
index bcc13b8164e..adcd6f556aa 100644
--- a/sbin/fdisk/part.h
+++ b/sbin/fdisk/part.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: part.h,v 1.12 2004/07/13 06:00:33 tom Exp $ */
+/* $OpenBSD: part.h,v 1.13 2004/08/03 09:22:03 otto Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -30,10 +30,10 @@
/* Partition type */
typedef struct _prt_t {
- int shead, scyl, ssect;
- int ehead, ecyl, esect;
- int bs;
- int ns;
+ u_int32_t shead, scyl, ssect;
+ u_int32_t ehead, ecyl, esect;
+ u_int32_t bs;
+ u_int32_t ns;
unsigned char flag;
unsigned char id;
} prt_t;