From f02e953a54b52833ad021bd1a979e33ddcfac399 Mon Sep 17 00:00:00 2001 From: Caleb Sander Mateos Date: Tue, 16 Jul 2024 12:42:44 -0600 Subject: [PATCH] util: remove argconfig CFG_SIZE type CFG_SIZE is unused and not handled by argconfig_set_opt_val(). Signed-off-by: Caleb Sander Mateos --- util/argconfig.c | 5 ----- util/argconfig.h | 1 - 2 files changed, 6 deletions(-) diff --git a/util/argconfig.c b/util/argconfig.c index 5ec3d6f2..88bcd10f 100644 --- a/util/argconfig.c +++ b/util/argconfig.c @@ -170,11 +170,6 @@ static int argconfig_parse_type(struct argconfig_commandline_options *s, struct case CFG_STRING: *((char **)value) = optarg; break; - case CFG_SIZE: - *((size_t *)value) = strtol(optarg, &endptr, 0); - if (errno || optarg == endptr) - ret = argconfig_error("integer", option[index].name, optarg); - break; case CFG_INT: *((int *)value) = strtol(optarg, &endptr, 0); if (errno || optarg == endptr) diff --git a/util/argconfig.h b/util/argconfig.h index 2a04a32e..17ff5fa1 100644 --- a/util/argconfig.h +++ b/util/argconfig.h @@ -47,7 +47,6 @@ enum argconfig_types { CFG_FLAG, CFG_STRING, CFG_INT, - CFG_SIZE, CFG_LONG, CFG_LONG_SUFFIX, CFG_DOUBLE, -- 2.50.1