From 37853a94825a59bc49be2d3f858657eb300b55cc Mon Sep 17 00:00:00 2001 From: Caleb Sander Mateos Date: Tue, 16 Jul 2024 10:13:01 -0600 Subject: [PATCH] util: remove redundant cast in argconfig_parse_type() s->default_value is already a void *, so there is no need to cast it to a char * and back. Signed-off-by: Caleb Sander Mateos --- util/argconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/argconfig.c b/util/argconfig.c index 87487eae..4bb0ea92 100644 --- a/util/argconfig.c +++ b/util/argconfig.c @@ -145,7 +145,7 @@ static int argconfig_error(char *type, const char *opt, const char *arg) static int argconfig_parse_type(struct argconfig_commandline_options *s, struct option *option, int index) { - void *value = (void *)(char *)s->default_value; + void *value = s->default_value; char *endptr; int ret = 0; -- 2.50.1