aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_vpb.cc
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:01:01 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:01:01 +0000
commit7a0fe5c93f93c827215ac7ed613130434c77e649 (patch)
treeca14014e3c226332296ae0d687f996e9d8dfe6b2 /channels/chan_vpb.cc
parente95289a0e951770a0233260e49add9df9b20d97a (diff)
Convert uses of strdup() to ast_strdup()
(issue #9983, eliel) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69436 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_vpb.cc')
-rw-r--r--channels/chan_vpb.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc
index a89701a6a..8e38409e5 100644
--- a/channels/chan_vpb.cc
+++ b/channels/chan_vpb.cc
@@ -688,8 +688,8 @@ static void get_callerid(struct vpb_pvt *p)
if (cli_struct->ra_cldn[0]=='\0'){
/*
- owner->cid.cid_num = strdup(cli_struct->cldn);
- owner->cid.cid_name = strdup(cli_struct->cn);
+ owner->cid.cid_num = ast_strdup(cli_struct->cldn);
+ owner->cid.cid_name = ast_strdup(cli_struct->cn);
*/
if (owner){
ast_set_callerid(owner, cli_struct->cldn, cli_struct->cn, cli_struct->cldn);
@@ -2694,7 +2694,7 @@ static struct ast_channel *vpb_request(const char *type, int format, void *data,
int oldformat;
struct vpb_pvt *p;
struct ast_channel *tmp = NULL;
- char *name = strdup(data ? (char *)data : "");
+ char *name = ast_strdup(data ? (char *)data : "");
char *s, *sepstr;
int group=-1;
@@ -2940,7 +2940,7 @@ int load_module()
} else if (strcasecmp(v->name, "language") == 0) {
strncpy(language, v->value, sizeof(language)-1);
} else if (strcasecmp(v->name, "callerid") == 0) {
- callerid = strdup(v->value);
+ callerid = ast_strdup(v->value);
} else if (strcasecmp(v->name, "mode") == 0) {
if (strncasecmp(v->value, "di", 2) == 0)
mode = MODE_DIALTONE;