diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-09-17 11:38:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-09-17 13:54:56 +0200 |
commit | 9eccc613a2662112f6e68fd1940249855ae2299e (patch) | |
tree | 8290e93f4ff5e44fac3fbe0b5b32a302e4f896fb | |
parent | 5261efaed82295d508d9a40d258b6e189180d6a7 (diff) | |
download | curl-9eccc613a2662112f6e68fd1940249855ae2299e.tar.gz |
tool_libinfo: silence "different 'const' qualifiers" in qsort()
MSVC 15.0.30729.1 warned about it
Follow-up to dd2a024323dcc
Closes #9522
-rw-r--r-- | src/tool_libinfo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tool_libinfo.c b/src/tool_libinfo.c index 5f7bd608f..1fc2996be 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++) |