From: Daniel Stenberg Date: Sat, 17 Sep 2022 09:38:59 +0000 (+0200) Subject: tool_libinfo: silence "different 'const' qualifiers" in qsort() X-Git-Tag: curl-7_86_0~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eccc613a2662112f6e68fd1940249855ae2299e;p=thirdparty%2Fcurl.git tool_libinfo: silence "different 'const' qualifiers" in qsort() MSVC 15.0.30729.1 warned about it Follow-up to dd2a024323dcc Closes #9522 --- 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++)