Change strdupa's to ast_strupda's
authorMark Spencer <markster@digium.com>
Mon, 29 Sep 2003 20:13:54 +0000 (20:13 +0000)
committerMark Spencer <markster@digium.com>
Mon, 29 Sep 2003 20:13:54 +0000 (20:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1579 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_cdr.c
apps/app_hasnewvoicemail.c
channels/chan_zap.c
channels/chan_zap_old.c

index dafbdd5..1720261 100755 (executable)
@@ -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>
index 797eb04..10f7914 100755 (executable)
@@ -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;
index fb37ea6..dd22167 100755 (executable)
@@ -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;
index cd3c4a5..0689d15 100755 (executable)
@@ -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;