summaryrefslogtreecommitdiff
path: root/main/uri.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-08-21 14:39:27 +0000
committerMatthew Jordan <mjordan@digium.com>2014-08-21 14:39:27 +0000
commit12341c90c1dcba231db7150ddceccbb8adba2e65 (patch)
tree949331fe9cf8bf65486ab48a59e32231390b74cc /main/uri.c
parente8b72c6f4b572e3e26d9ed60de5a0bda51aebd22 (diff)
uri: Quiet warning about type qualifiers ignored on function return type
This patch fixes gcc warnings that occur due to the type qualifier 'const' being ignored on a return type of int. ASTERISK-24246 #close Reported by: Shaun Ruffell patches: 0001-main-uri-Quiet-warning-about-ignored-attribute-on-re.patch uploaded by Shaun Ruffell (License 5417) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@421675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/uri.c')
-rw-r--r--main/uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/uri.c b/main/uri.c
index be1136fe6..07493699b 100644
--- a/main/uri.c
+++ b/main/uri.c
@@ -142,7 +142,7 @@ const char *ast_uri_query(const struct ast_uri *uri)
return uri->query;
}
-const int ast_uri_is_secure(const struct ast_uri *uri)
+int ast_uri_is_secure(const struct ast_uri *uri)
{
return ast_strlen_zero(uri->scheme) ? 0 :
*(uri->scheme + strlen(uri->scheme) - 1) == 's';