From: Jim Dixon Date: Mon, 13 Sep 2004 12:12:17 +0000 (+0000) Subject: Fixed minor issue in app_rpt(). Allows it to work better with many Linux distributions X-Git-Tag: 1.0.0~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4990284401fe7733990178046e0e0fe01b047da;p=thirdparty%2Fasterisk.git Fixed minor issue in app_rpt(). Allows it to work better with many Linux distributions git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3768 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 5c379284fe..700a9208a6 100755 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -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 #include -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";