mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Merge ast_str_opaque branch (discontinue usage of ast_str internals)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -367,8 +367,7 @@ int ast_cdr_serialize_variables(struct ast_cdr *cdr, struct ast_str **buf, char
|
||||
char workspace[256];
|
||||
int total = 0, x = 0, i;
|
||||
|
||||
(*buf)->used = 0;
|
||||
(*buf)->str[0] = '\0';
|
||||
ast_str_reset(*buf);
|
||||
|
||||
for (; cdr; cdr = recur ? cdr->next : NULL) {
|
||||
if (++x > 1)
|
||||
@@ -776,7 +775,7 @@ void ast_cdr_setdestchan(struct ast_cdr *cdr, const char *chann)
|
||||
}
|
||||
}
|
||||
|
||||
void ast_cdr_setapp(struct ast_cdr *cdr, char *app, char *data)
|
||||
void ast_cdr_setapp(struct ast_cdr *cdr, const char *app, const char *data)
|
||||
{
|
||||
|
||||
for (; cdr; cdr = cdr->next) {
|
||||
|
||||
Reference in New Issue
Block a user