diff options
author | jim <jim@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-13 12:12:17 +0000 |
---|---|---|
committer | jim <jim@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-13 12:12:17 +0000 |
commit | eae416c81995af0b554d0378435781b5ffdf53e7 (patch) | |
tree | 623c030f817d01e4773669a65bf7aa451891448a | |
parent | 0648d8bd296cd4bd33f05f4e930e15ad77976f21 (diff) |
Fixed minor issue in app_rpt(). Allows it to work better with many Linux distributions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3768 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_rpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 5c379284f..700a9208a 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 <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"; |