Fixed minor issue in app_rpt(). Allows it to work better with many Linux distributions
authorJim Dixon <telesistant@hotmail.com>
Mon, 13 Sep 2004 12:12:17 +0000 (12:12 +0000)
committerJim Dixon <telesistant@hotmail.com>
Mon, 13 Sep 2004 12:12:17 +0000 (12:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3768 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_rpt.c

index 5c37928..700a920 100755 (executable)
@@ -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 @@ enum {DLY_TELEM, DLY_ID, DLY_UNKEY, DLY_CALLTERM};
 #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 @@ struct tm localtm;
            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";