Portability fixes to sayunixtime
authorMark Spencer <markster@digium.com>
Mon, 13 Oct 2003 12:23:31 +0000 (12:23 +0000)
committerMark Spencer <markster@digium.com>
Mon, 13 Oct 2003 12:23:31 +0000 (12:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1627 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_sayunixtime.c

index 26905a0..2c5b07a 100755 (executable)
  *
  */
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
 #include <asterisk/file.h>
 #include <asterisk/logger.h>
 #include <asterisk/options.h>
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
 #include <asterisk/say.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
 
 
 static char *tdesc = "Say time";
@@ -60,7 +60,7 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data)
 
        if (data) {
                s = data;
-               s = strdupa(s);
+               s = ast_strdupa(s);
                if (s) {
                        timec = strsep(&s,"|");
                        if ((timec) && (*timec != '\0')) {