[Asterisk-cvs] asterisk/apps app_rpt.c,1.21,1.22

jim at lists.digium.com jim at lists.digium.com
Mon Sep 13 08:10:35 CDT 2004


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

Modified Files:
	app_rpt.c 
Log Message:
Fixed minor issue in app_rpt(). Allows it to work better with many Linux distributions


Index: app_rpt.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_rpt.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- app_rpt.c	22 Aug 2004 03:58:42 -0000	1.21
+++ app_rpt.c	13 Sep 2004 12:12:17 -0000	1.22
@@ -3,7 +3,7 @@
  * Asterisk -- A telephony toolkit for Linux.
  *
  * Radio Repeater / Remote Base program 
- *  version 0.16 8/21/04
+ *  version 0.17 9/13/04
  * 
  * See http://www.zapatatelephony.org/app_rpt.html
  *
@@ -137,7 +137,7 @@
 #include <tonezone.h>
 #include <linux/zaptel.h>
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.16  08/21/2004";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.17  09/13/2004";
 static char *app = "Rpt";
 
 static char *synopsis = "Radio Repeater/Remote Base Control System";
@@ -1014,7 +1014,7 @@
 	    case STATS_TIME:
 	    	wait_interval(myrpt, DLY_TELEM); /* Wait a little bit */
 		t = time(NULL);
-		ast_localtime(&t, &localtm, NULL);
+		localtime_r(&t, &localtm);
 		/* Say the phase of the day is before the time */
 		if((localtm.tm_hour >= 0) && (localtm.tm_hour < 12))
 			p = "rpt/goodmorning";




More information about the svn-commits mailing list