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++)