From 2ad00dadfd9dc079565059237894a1cbfffeb36a Mon Sep 17 00:00:00 2001 From: krw Date: Sat, 25 Mar 2023 20:34:28 +0000 Subject: [PATCH] Move LINEBUFSZ to be with its friends in misc.h. Nuke unused HELPBUFSZ. No functional change. --- sbin/fdisk/misc.h | 3 ++- sbin/fdisk/user.h | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/sbin/fdisk/misc.h b/sbin/fdisk/misc.h index 69586e30003..640510f4fba 100644 --- a/sbin/fdisk/misc.h +++ b/sbin/fdisk/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.49 2022/04/20 20:43:32 krw Exp $ */ +/* $OpenBSD: misc.h,v 1.50 2023/03/25 20:34:28 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -29,6 +29,7 @@ struct unit_type { #define WHITESPACE " \f\n\r\t\v" #define UNTRIMMED 0 #define TRIMMED 1 +#define LINEBUFSZ 100 double units_size(const char *, const uint64_t, const struct unit_type **); diff --git a/sbin/fdisk/user.h b/sbin/fdisk/user.h index e358f81f5b1..6f5d5011e2e 100644 --- a/sbin/fdisk/user.h +++ b/sbin/fdisk/user.h @@ -1,4 +1,4 @@ -/* $OpenBSD: user.h,v 1.24 2022/07/25 17:45:16 krw Exp $ */ +/* $OpenBSD: user.h,v 1.25 2023/03/25 20:34:28 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -16,9 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define LINEBUFSZ 100 -#define HELPBUFSZ 80 - void USER_edit(const uint64_t, const uint64_t); void USER_print_disk(const int); void USER_help(const struct mbr *); -- 2.20.1