From 3ecd50e57a90f8c01f84cb02737c37e86a8883c4 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 7 Feb 2025 14:55:28 +0100 Subject: [PATCH] Revert "argconfig: add argconfig_get_value()" This reverts commit cccefc48a9aca3c0b3f0f2a2a0fe5d01ad9eb59a. Causes regression in nightly CI runs. The problem couldn't be figured out thus revert it. Signed-off-by: Daniel Wagner --- util/argconfig.c | 13 ------------- util/argconfig.h | 1 - 2 files changed, 14 deletions(-) diff --git a/util/argconfig.c b/util/argconfig.c index 9a3faf0e..34607202 100644 --- a/util/argconfig.c +++ b/util/argconfig.c @@ -429,16 +429,3 @@ bool argconfig_parse_seen(struct argconfig_commandline_options *s, return false; } - -void *argconfig_get_value(struct argconfig_commandline_options *s, const char *option) -{ - for (; s && s->option; s++) { - if (!strcmp(s->option, option)) { - if (s->seen) - return s->default_value; - break; - } - } - - return NULL; -} diff --git a/util/argconfig.h b/util/argconfig.h index f0d2c36b..44d2e4e6 100644 --- a/util/argconfig.h +++ b/util/argconfig.h @@ -190,5 +190,4 @@ int argconfig_parse_comma_sep_array_u64(char *string, __u64 *val, void print_word_wrapped(const char *s, int indent, int start, FILE *stream); bool argconfig_parse_seen(struct argconfig_commandline_options *options, const char *option); -void *argconfig_get_value(struct argconfig_commandline_options *s, const char *option); #endif -- 2.50.1