Skip to content
Snippets Groups Projects
Commit da91946d authored by Matthew Jordan's avatar Matthew Jordan
Browse files

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

Merged revisions 421675 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@421676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent b7f98c3d
Branches
Tags
No related merge requests found
...@@ -115,7 +115,7 @@ const char *ast_uri_query(const struct ast_uri *uri); ...@@ -115,7 +115,7 @@ const char *ast_uri_query(const struct ast_uri *uri);
* \return True if secure, False otherwise. * \return True if secure, False otherwise.
* \since 13 * \since 13
*/ */
const int ast_uri_is_secure(const struct ast_uri *uri); int attribute_pure ast_uri_is_secure(const struct ast_uri *uri);
/*! /*!
* \brief Parse the given uri into a structure. * \brief Parse the given uri into a structure.
......
...@@ -142,7 +142,7 @@ const char *ast_uri_query(const struct ast_uri *uri) ...@@ -142,7 +142,7 @@ const char *ast_uri_query(const struct ast_uri *uri)
return uri->query; 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 : return ast_strlen_zero(uri->scheme) ? 0 :
*(uri->scheme + strlen(uri->scheme) - 1) == 's'; *(uri->scheme + strlen(uri->scheme) - 1) == 's';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment