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
ff070124
Commit
ff070124
authored
Feb 15, 2012
by
jehan
Browse files
replace strdup by belle_sip_strdup
parent
eab273ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
src/belle_sip_headers_impl.c
src/belle_sip_headers_impl.c
+1
-4
src/belle_sip_message.g
src/belle_sip_message.g
+1
-1
src/belle_sip_object.c
src/belle_sip_object.c
+1
-1
No files found.
src/belle_sip_headers_impl.c
View file @
ff070124
...
...
@@ -843,15 +843,12 @@ static void belle_sip_header_www_authenticate_destroy(belle_sip_header_www_authe
void
belle_sip_header_www_authenticate_init
(
belle_sip_header_www_authenticate_t
*
www_authenticate
)
{
www_authenticate
->
stale
=-
1
;
}
static
void
*
str_copyfunc
(
void
*
value
){
return
strdup
((
const
char
*
)
value
);
}
static
void
belle_sip_header_www_authenticate_clone
(
belle_sip_header_www_authenticate_t
*
www_authenticate
,
const
belle_sip_header_www_authenticate_t
*
orig
)
{
AUTH_BASE_CLONE
(
belle_sip_header_www_authenticate
,
www_authenticate
,
orig
)
CLONE_STRING
(
belle_sip_header_www_authenticate
,
domain
,
www_authenticate
,
orig
)
www_authenticate
->
stale
=
orig
->
stale
;
www_authenticate
->
qop
=
belle_sip_list_copy_with_data
(
orig
->
qop
,
str_copyfunc
);
www_authenticate
->
qop
=
belle_sip_list_copy_with_data
(
orig
->
qop
,
(
void
*
(
*
)(
void
*
))
belle_sip_strdup
);
}
int
belle_sip_header_www_authenticate_marshal
(
belle_sip_header_www_authenticate_t
*
www_authenticate
,
char
*
buff
,
unsigned
int
offset
,
unsigned
int
buff_size
)
{
belle_sip_list_t
*
qops
=
www_authenticate
->
qop
;
...
...
src/belle_sip_message.g
View file @
ff070124
...
...
@@ -656,7 +656,7 @@ scope { belle_sip_list_t* list; }
rdquot {$ret=$qop_opts::list;} ;
qop_opts_value
: token {$qop_opts::list=belle_sip_list_append($qop_opts::list,strdup((const char*)$token.text->chars));};
: token {$qop_opts::list=belle_sip_list_append($qop_opts::list,
belle_sip_
strdup((const char*)$token.text->chars));};
header_proxy_authorization returns [belle_sip_header_proxy_authorization_t* ret]
scope { belle_sip_header_proxy_authorization_t* current; }
...
...
src/belle_sip_object.c
View file @
ff070124
...
...
@@ -233,7 +233,7 @@ char* belle_sip_object_to_string(belle_sip_object_t* obj) {
char
buff
[
2048
];
/*to be optimized*/
int
size
=
belle_sip_object_marshal
(
obj
,
buff
,
0
,
sizeof
(
buff
));
buff
[
size
]
=
'\0'
;
return
strdup
(
buff
);
return
belle_sip_
strdup
(
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