diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-07-09 17:19:56 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-07-09 17:19:56 +0000 |
commit | 1ff419ef9c1c5f7bc2a055c5e03874113ba7c0c5 (patch) | |
tree | 83a62f5d284e7e94bb179b46840b660dac506688 /sbin/fdisk/misc.h | |
parent | 27c996996e42e404ae86faf02f437527fad373e6 (diff) |
We always want to do unit conversions. So flags parameter of getuint()
is now superflous. With rounding gone the offset parameter is
similarly superfluous. Simply getuint() accordingly.
Diffstat (limited to 'sbin/fdisk/misc.h')
-rw-r--r-- | sbin/fdisk/misc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/fdisk/misc.h b/sbin/fdisk/misc.h index 45a02215100..cf86e87052f 100644 --- a/sbin/fdisk/misc.h +++ b/sbin/fdisk/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.15 2012/07/09 17:07:35 krw Exp $ */ +/* $OpenBSD: misc.h,v 1.16 2012/07/09 17:19:55 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -46,7 +46,6 @@ extern struct unit_type unit_types[]; #define ASK_HEX 0x01 #define ASK_DEC 0x02 #define UNIT_TYPE_DEFAULT 1 -#define DO_CONVERSIONS 0x00000001 /* Prototypes */ int unit_lookup(char *); @@ -58,7 +57,7 @@ u_int16_t getshort(void *); u_int32_t getlong(void *); void putshort(void *, u_int16_t); void putlong(void *, u_int32_t); -u_int32_t getuint(disk_t *, char *, char *, u_int32_t, u_int32_t, u_int32_t, int); +u_int32_t getuint(disk_t *, char *, char *, u_int32_t, u_int32_t); #endif /* _MISC_H */ |