Commit f94307b3 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

Use insensitive conversion from string to adaptive rate algorithm (error-prone)

parent bb0b0b1f
......@@ -84,9 +84,9 @@ const char* ms_qos_analyzer_algorithm_to_string(MSQosAnalyzerAlgorithm alg) {
const MSQosAnalyzerAlgorithm ms_qos_analyzer_algorithm_from_string(const char* alg) {
if (alg == NULL || strcmp(alg, "Simple")==0)
if (alg == NULL || strcasecmp(alg, "Simple")==0)
return MSQosAnalyzerAlgorithmSimple;
else if (strcmp(alg, "Stateful")==0)
else if (strcasecmp(alg, "Stateful")==0)
return MSQosAnalyzerAlgorithmStateful;
ms_error("Invalid qos analyzer: %s", alg);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment