diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_directory.c | 2 | ||||
-rw-r--r-- | apps/app_meetme.c | 6 | ||||
-rw-r--r-- | apps/app_minivm.c | 6 | ||||
-rw-r--r-- | apps/app_speech_utils.c | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index a53cd7406..7746502c7 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -444,7 +444,7 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, struct /* Find all candidate extensions */ while(v) { /* Find a candidate extension */ - start = strdup(v->value); + start = ast_strdup(v->value); if (start && !strcasestr(start, "hidefromdir=yes")) { stringp=start; strsep(&stringp, ","); diff --git a/apps/app_meetme.c b/apps/app_meetme.c index d651db45e..95faa42e6 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -984,7 +984,7 @@ static char *complete_meetmecmd(const char *line, const char *word, int pos, int /* User Number || Conf Command option*/ if (strstr(line, "mute") || strstr(line, "kick")) { if (state == 0 && (strstr(line, "kick") || strstr(line,"mute")) && !strncasecmp(word, "all", len)) - return strdup("all"); + return ast_strdup("all"); which++; AST_LIST_LOCK(&confs); @@ -1009,9 +1009,9 @@ static char *complete_meetmecmd(const char *line, const char *word, int pos, int } } AST_LIST_UNLOCK(&confs); - return usr ? strdup(usrno) : NULL; + return usr ? ast_strdup(usrno) : NULL; } else if ( strstr(line, "list") && ( 0 == state ) ) - return strdup("concise"); + return ast_strdup("concise"); } return NULL; diff --git a/apps/app_minivm.c b/apps/app_minivm.c index 4960ecf99..682520b1c 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -2333,7 +2333,7 @@ static char *message_template_parse_filebody(char *filename) { static char *message_template_parse_emailbody(const char *configuration) { char *tmpread, *tmpwrite; - char *emailbody = strdup(configuration); + char *emailbody = ast_strdup(configuration); /* substitute strings \t and \n into the apropriate characters */ tmpread = tmpwrite = emailbody; @@ -2678,12 +2678,12 @@ static char *complete_minivm_show_users(const char *line, const char *word, int if (pos > 4) return NULL; if (pos == 3) - return (state == 0) ? strdup("for") : NULL; + return (state == 0) ? ast_strdup("for") : NULL; wordlen = strlen(word); AST_LIST_TRAVERSE(&minivm_accounts, vmu, list) { if (!strncasecmp(word, vmu->domain, wordlen)) { if (domain && strcmp(domain, vmu->domain) && ++which > state) - return strdup(vmu->domain); + return ast_strdup(vmu->domain); /* ignore repeated domains ? */ domain = vmu->domain; } diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 0956e0bab..c18fd6fb8 100644 --- a/apps/app_speech_utils.c +++ b/apps/app_speech_utils.c @@ -515,7 +515,7 @@ static int speech_processing_sound(struct ast_channel *chan, void *data) speech->processing_sound = NULL; } - speech->processing_sound = strdup(data); + speech->processing_sound = ast_strdup(data); ast_module_user_remove(u); @@ -747,8 +747,8 @@ static int speech_background(struct ast_channel *chan, void *data) speech->results = ast_calloc(1, sizeof(*speech->results)); if (speech->results != NULL) { speech->results->score = 1000; - speech->results->text = strdup(dtmf); - speech->results->grammar = strdup("dtmf"); + speech->results->text = ast_strdup(dtmf); + speech->results->grammar = ast_strdup("dtmf"); } } |