From d2082ee94267e4ca59b187c5e37dac03c1d65187 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 31 Jan 2023 05:13:03 +0100 Subject: Merging upstream version 2.3. Signed-off-by: Daniel Baumann --- util/argconfig.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'util/argconfig.h') diff --git a/util/argconfig.h b/util/argconfig.h index b66706a..6ef3b6a 100644 --- a/util/argconfig.h +++ b/util/argconfig.h @@ -37,6 +37,7 @@ #include #include #include +#include enum argconfig_types { CFG_FLAG, @@ -71,9 +72,6 @@ enum argconfig_types { #define OPT_SUFFIX(l, s, v, d) \ {l, s, "IONUM", CFG_LONG_SUFFIX, v, required_argument, d} -#define OPT_LONG(l, s, v, d) \ - {l, s, "NUM", CFG_LONG, v, required_argument, d} - #define OPT_UINT(l, s, v, d) \ {l, s, "NUM", CFG_POSITIVE, v, required_argument, d} @@ -131,7 +129,8 @@ int argconfig_parse_comma_sep_array_short(char *string, unsigned short *ret, int argconfig_parse_comma_sep_array_long(char *string, unsigned long long *ret, unsigned max_length); +int argconfig_parse_byte(const char *opt, const char *str, unsigned char *val); void argconfig_register_help_func(argconfig_help_func * f); -void print_word_wrapped(const char *s, int indent, int start); +void print_word_wrapped(const char *s, int indent, int start, FILE *stream); #endif -- cgit v1.2.3