Convert uses of strdup() to ast_strdup()

(issue #9983, eliel)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-06-14 23:01:01 +00:00
parent 5dd9887ac7
commit b179e2155f
19 changed files with 62 additions and 62 deletions

View File

@@ -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;