Change strdupa's to ast_strupda's

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-09-29 20:13:54 +00:00
parent 4fe5b6f516
commit 229f4abf93
4 changed files with 5 additions and 4 deletions

View File

@@ -11,6 +11,7 @@
* the GNU General Public License * the GNU General Public License
*/ */
#include <sys/types.h>
#include <asterisk/channel.h> #include <asterisk/channel.h>
#include <asterisk/module.h> #include <asterisk/module.h>
#include <asterisk/pbx.h> #include <asterisk/pbx.h>

View File

@@ -28,6 +28,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <sys/types.h>
#include <asterisk/file.h> #include <asterisk/file.h>
#include <asterisk/logger.h> #include <asterisk/logger.h>
#include <asterisk/channel.h> #include <asterisk/channel.h>
@@ -37,7 +38,6 @@
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h>
#include <dirent.h> #include <dirent.h>
#include <pthread.h> #include <pthread.h>
@@ -70,7 +70,7 @@ static int hasnewvoicemail_exec(struct ast_channel *chan, void *data)
} }
LOCAL_USER_ADD(u); LOCAL_USER_ADD(u);
input = strdupa((char *)data); input = ast_strdupa((char *)data);
if (input) { if (input) {
if ((vmbox = strsep(&input,"|"))) if ((vmbox = strsep(&input,"|")))
varname = input; varname = input;

View File

@@ -5308,7 +5308,7 @@ static struct ast_channel *zt_request(char *type, int format, void *data)
return NULL; return NULL;
} }
if (data) { if (data) {
dest = strdupa((char *)data); dest = ast_strdupa((char *)data);
} else { } else {
ast_log(LOG_WARNING, "Channel requested with no data\n"); ast_log(LOG_WARNING, "Channel requested with no data\n");
return NULL; return NULL;

View File

@@ -5189,7 +5189,7 @@ static struct ast_channel *zt_request(char *type, int format, void *data)
return NULL; return NULL;
} }
if (data) { if (data) {
dest = strdupa((char *)data); dest = ast_strdupa((char *)data);
} else { } else {
ast_log(LOG_WARNING, "Channel requested with no data\n"); ast_log(LOG_WARNING, "Channel requested with no data\n");
return NULL; return NULL;