mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
format_cap: make function parameters 'const'
There were a couple places where the format cap function parameter was not 'const' when it should have been. This patch makes them 'const'. Change-Id: Ife753fb16a962d842a6b44f45363a61a66bfdb2e
This commit is contained in:
@@ -699,7 +699,7 @@ int ast_format_cap_identical(const struct ast_format_cap *cap1, const struct ast
|
||||
return internal_format_cap_identical(cap2, cap1);
|
||||
}
|
||||
|
||||
const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str **buf)
|
||||
const char *ast_format_cap_get_names(const struct ast_format_cap *cap, struct ast_str **buf)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -725,7 +725,7 @@ const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str
|
||||
return ast_str_buffer(*buf);
|
||||
}
|
||||
|
||||
int ast_format_cap_empty(struct ast_format_cap *cap)
|
||||
int ast_format_cap_empty(const struct ast_format_cap *cap)
|
||||
{
|
||||
int count = ast_format_cap_count(cap);
|
||||
|
||||
|
Reference in New Issue
Block a user