[Asterisk-cvs] asterisk/apps app_sayunixtime.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Mon Oct 13 06:57:28 CDT 2003


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv2995/apps

Modified Files:
	app_sayunixtime.c 
Log Message:
Portability fixes to sayunixtime


Index: app_sayunixtime.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_sayunixtime.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- app_sayunixtime.c	5 Oct 2003 22:17:32 -0000	1.2
+++ app_sayunixtime.c	13 Oct 2003 12:23:31 -0000	1.3
@@ -11,6 +11,10 @@
  *
  */
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
 #include <asterisk/file.h>
 #include <asterisk/logger.h>
 #include <asterisk/options.h>
@@ -18,10 +22,6 @@
 #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 @@
 
 	if (data) {
 		s = data;
-		s = strdupa(s);
+		s = ast_strdupa(s);
 		if (s) {
 			timec = strsep(&s,"|");
 			if ((timec) && (*timec != '\0')) {




More information about the svn-commits mailing list