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

bitratecontrol: remove unnecessary "const"

parent 238c4f63
...@@ -92,7 +92,7 @@ enum _MSQosAnalyzerAlgorithm { ...@@ -92,7 +92,7 @@ enum _MSQosAnalyzerAlgorithm {
}; };
typedef enum _MSQosAnalyzerAlgorithm MSQosAnalyzerAlgorithm; typedef enum _MSQosAnalyzerAlgorithm MSQosAnalyzerAlgorithm;
MS2_PUBLIC const char* ms_qos_analyzer_algorithm_to_string(MSQosAnalyzerAlgorithm alg); MS2_PUBLIC const char* ms_qos_analyzer_algorithm_to_string(MSQosAnalyzerAlgorithm alg);
MS2_PUBLIC const MSQosAnalyzerAlgorithm ms_qos_analyzer_algorithm_from_string(const char* alg); MS2_PUBLIC MSQosAnalyzerAlgorithm ms_qos_analyzer_algorithm_from_string(const char* alg);
/** /**
* A MSQosAnalyzer is responsible to analyze RTCP feedback and suggest * A MSQosAnalyzer is responsible to analyze RTCP feedback and suggest
......
...@@ -81,7 +81,7 @@ const char* ms_qos_analyzer_algorithm_to_string(MSQosAnalyzerAlgorithm alg) { ...@@ -81,7 +81,7 @@ const char* ms_qos_analyzer_algorithm_to_string(MSQosAnalyzerAlgorithm alg) {
default: return NULL; default: return NULL;
} }
} }
const MSQosAnalyzerAlgorithm ms_qos_analyzer_algorithm_from_string(const char* alg) { MSQosAnalyzerAlgorithm ms_qos_analyzer_algorithm_from_string(const char* alg) {
if (alg == NULL || strcasecmp(alg, "Simple")==0) if (alg == NULL || strcasecmp(alg, "Simple")==0)
return MSQosAnalyzerAlgorithmSimple; return MSQosAnalyzerAlgorithmSimple;
else if (strcasecmp(alg, "Stateful")==0) else if (strcasecmp(alg, "Stateful")==0)
......
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