diff options
author | 2015-11-21 16:45:41 +0000 | |
---|---|---|
committer | 2015-11-21 16:45:41 +0000 | |
commit | 684c15929ab3ac3abbbcdba77d2d06b5fd9f917c (patch) | |
tree | 620ff0920a7a6eff58d018de27eae7ec3eccfd51 /sbin/fdisk/misc.h | |
parent | sync (diff) | |
download | wireguard-openbsd-684c15929ab3ac3abbbcdba77d2d06b5fd9f917c.tar.xz wireguard-openbsd-684c15929ab3ac3abbbcdba77d2d06b5fd9f917c.zip |
Bring GPT partition editing into line with MBR partition editing
by presenting the existing offset and size as the defaults. Enhance
getuint64() to take a minimum value as ask_num() does. Use this to
ensure that GPT partitions are constrained to the valid area of the
disk. Leave MBR partition constraints alone for the moment.
Original problem(s) noted by tim@
Diffstat (limited to 'sbin/fdisk/misc.h')
-rw-r--r-- | sbin/fdisk/misc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/misc.h b/sbin/fdisk/misc.h index 3724cdee928..e80ae59edda 100644 --- a/sbin/fdisk/misc.h +++ b/sbin/fdisk/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.32 2015/11/12 15:07:41 krw Exp $ */ +/* $OpenBSD: misc.h,v 1.33 2015/11/21 16:45:41 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -35,7 +35,7 @@ int ask_num(const char *, int, int, int); int ask_pid(int, struct uuid *); char *ask_string(const char *, const char *); int ask_yn(const char *); -u_int64_t getuint64(char *, u_int64_t, u_int64_t); +u_int64_t getuint64(char *, u_int64_t, u_int64_t, u_int64_t); u_int32_t crc32(const u_char *, const u_int32_t); char *utf16le_to_string(u_int16_t *); u_int16_t *string_to_utf16le(char *); |