diff options
author | Mark Spencer <markster@digium.com> | 2003-09-29 20:13:54 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-09-29 20:13:54 +0000 |
commit | 229f4abf937867defe7169bc27ad24e3c5f6d5ae (patch) | |
tree | 3303ede41bdf040b96c7a79075e2758c63e119c4 | |
parent | 4fe5b6f516d5fda674d0234e3bc1c5ab8062c379 (diff) |
Change strdupa's to ast_strupda's
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | apps/app_cdr.c | 1 | ||||
-rwxr-xr-x | apps/app_hasnewvoicemail.c | 4 | ||||
-rwxr-xr-x | channels/chan_zap.c | 2 | ||||
-rwxr-xr-x | channels/chan_zap_old.c | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/apps/app_cdr.c b/apps/app_cdr.c index dafbdd57c..1720261a8 100755 --- a/apps/app_cdr.c +++ b/apps/app_cdr.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include <sys/types.h> #include <asterisk/channel.h> #include <asterisk/module.h> #include <asterisk/pbx.h> diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c index 797eb041d..10f791431 100755 --- a/apps/app_hasnewvoicemail.c +++ b/apps/app_hasnewvoicemail.c @@ -28,6 +28,7 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/types.h> #include <asterisk/file.h> #include <asterisk/logger.h> #include <asterisk/channel.h> @@ -37,7 +38,6 @@ #include <unistd.h> #include <string.h> #include <stdlib.h> -#include <sys/types.h> #include <dirent.h> #include <pthread.h> @@ -70,7 +70,7 @@ static int hasnewvoicemail_exec(struct ast_channel *chan, void *data) } LOCAL_USER_ADD(u); - input = strdupa((char *)data); + input = ast_strdupa((char *)data); if (input) { if ((vmbox = strsep(&input,"|"))) varname = input; diff --git a/channels/chan_zap.c b/channels/chan_zap.c index fb37ea65d..dd2216702 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -5308,7 +5308,7 @@ static struct ast_channel *zt_request(char *type, int format, void *data) return NULL; } if (data) { - dest = strdupa((char *)data); + dest = ast_strdupa((char *)data); } else { ast_log(LOG_WARNING, "Channel requested with no data\n"); return NULL; diff --git a/channels/chan_zap_old.c b/channels/chan_zap_old.c index cd3c4a547..0689d1598 100755 --- a/channels/chan_zap_old.c +++ b/channels/chan_zap_old.c @@ -5189,7 +5189,7 @@ static struct ast_channel *zt_request(char *type, int format, void *data) return NULL; } if (data) { - dest = strdupa((char *)data); + dest = ast_strdupa((char *)data); } else { ast_log(LOG_WARNING, "Channel requested with no data\n"); return NULL; |