From 9eccc613a2662112f6e68fd1940249855ae2299e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 17 Sep 2022 11:38:59 +0200 Subject: [PATCH] tool_libinfo: silence "different 'const' qualifiers" in qsort() MSVC 15.0.30729.1 warned about it Follow-up to dd2a024323dcc Closes #9522 --- src/tool_libinfo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tool_libinfo.c b/src/tool_libinfo.c index 5f7bd608f5..1fc2996be4 100644 --- a/src/tool_libinfo.c +++ b/src/tool_libinfo.c @@ -187,9 +187,10 @@ CURLcode get_libcurl_info(void) if(result) return result; - /* Sort the protocols to be sure the primary ones are always accessible and - * to retain their list order for testing purposes. */ - qsort(built_in_protos, proto_last, sizeof(built_in_protos[0]), protocmp); + /* Sort the protocols to be sure the primary ones are always accessible + * and to retain their list order for testing purposes. */ + qsort((char *)built_in_protos, proto_last, + sizeof(built_in_protos[0]), protocmp); /* Identify protocols we are interested in. */ for(p = possibly_built_in; p->proto_name; p++)