From 85c84ba9cd61ff4de8f4186927df8dce84c95fb6 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 3 Aug 2004 09:22:04 +0000 Subject: Handle geometry parameters as unsigned quantities, getting rid of negative number of sectors on large disks and other similar problems. ok toby@ tom@ deraadt@ --- sbin/fdisk/part.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sbin/fdisk/part.h') 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; -- cgit v1.2.3