From 49942414246ad4438112352d545488f9005c6b9b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 18 Sep 2020 09:58:14 +0200 Subject: fixup remove 'const' from tool_help() and avoid a typecast --- src/tool_help.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tool_help.c') diff --git a/src/tool_help.c b/src/tool_help.c index aeb40b098..a67e4bc85 100644 --- a/src/tool_help.c +++ b/src/tool_help.c @@ -899,7 +899,7 @@ static void get_categories(void) } -void tool_help(const char *category) +void tool_help(char *category) { puts("Usage: curl [options...] "); /* If no category was provided */ @@ -923,7 +923,7 @@ void tool_help(const char *category) puts("Invalid category provided, here is a list of all categories:\n"); get_categories(); } - free((char *)category); + free(category); } static int -- cgit v1.2.1