Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
bb3a899c
Commit
bb3a899c
authored
May 22, 2017
by
jehan
Browse files
fix gcc compilation issue
parent
63f6aa0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/belle_sip_utils.c
src/belle_sip_utils.c
+6
-6
No files found.
src/belle_sip_utils.c
View file @
bb3a899c
...
...
@@ -411,7 +411,7 @@ static const bctbx_noescape_rules_t* get_sip_uri_username_noescapes(void) {
noescapes
[
BCTBX_NOESCAPE_RULES_USER_INDEX
]
=
1
;
// initialized
// print_noescapes_map(noescapes, "uri_username");
}
return
&
noescapes
;
return
(
const
bctbx_noescape_rules_t
*
)
&
noescapes
;
/*gcc asks for a cast, clang not*/
}
/*
*
...
...
@@ -429,7 +429,7 @@ static const bctbx_noescape_rules_t* get_sip_uri_userpasswd_noescapes(void) {
noescapes
[
BCTBX_NOESCAPE_RULES_USER_INDEX
]
=
1
;
// initialized
}
return
&
noescapes
;
return
(
const
bctbx_noescape_rules_t
*
)
&
noescapes
;
/*gcc asks for a cast, clang not*/
}
static
const
bctbx_noescape_rules_t
*
get_sip_uri_parameter_noescapes
(
void
)
{
...
...
@@ -462,7 +462,7 @@ static const bctbx_noescape_rules_t* get_sip_uri_parameter_noescapes(void) {
noescapes
[
BCTBX_NOESCAPE_RULES_USER_INDEX
]
=
1
;
// initialized
// print_noescapes_map(noescapes, "uri_parameter");
}
return
&
noescapes
;
return
(
const
bctbx_noescape_rules_t
*
)
&
noescapes
;
/*gcc asks for a cast, clang not*/
}
static
const
bctbx_noescape_rules_t
*
get_sip_uri_header_noescapes
(
void
)
{
static
bctbx_noescape_rules_t
noescapes
=
{
0
};
...
...
@@ -492,7 +492,7 @@ static const bctbx_noescape_rules_t* get_sip_uri_header_noescapes(void) {
noescapes
[
BCTBX_NOESCAPE_RULES_USER_INDEX
]
=
1
;
// initialized
// print_noescapes_map(noescapes, "uri_parameter");
}
return
&
noescapes
;
return
(
const
bctbx_noescape_rules_t
*
)
&
noescapes
;
/*gcc asks for a cast, clang not*/
}
...
...
@@ -535,7 +535,7 @@ static const bctbx_noescape_rules_t *get_generic_uri_query_noescapes(void) {
bctbx_noescape_rules_add_list
(
noescapes
,
"=&"
);
// otherwise how to pass parameters?
noescapes
[
BCTBX_NOESCAPE_RULES_USER_INDEX
]
=
1
;
// initialized
}
return
&
noescapes
;
return
(
const
bctbx_noescape_rules_t
*
)
&
noescapes
;
/*gcc asks for a cast, clang not*/
}
static
const
bctbx_noescape_rules_t
*
get_generic_uri_path_noescapes
(
void
)
{
...
...
@@ -577,7 +577,7 @@ static const bctbx_noescape_rules_t *get_generic_uri_path_noescapes(void) {
noescapes
[
BCTBX_NOESCAPE_RULES_USER_INDEX
]
=
1
;
// initialized
}
return
&
noescapes
;
return
(
const
bctbx_noescape_rules_t
*
)
&
noescapes
;
/*gcc asks for a cast, clang not*/
}
char
*
belle_generic_uri_to_escaped_query
(
const
char
*
buff
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment