Updates from char * to const char * + german syntax + enumeration (bug #2780)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-11-13 16:13:07 +00:00
parent a1cdeb6f80
commit dd43338425
19 changed files with 2013 additions and 1624 deletions

View File

@@ -58,16 +58,21 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *s,*zone=NULL,*timec;
char *s,*zone=NULL,*timec,*format;
time_t unixtime;
char *format = "ABdY 'digits/at' IMp";
struct timeval tv;
LOCAL_USER_ADD(u);
gettimeofday(&tv,NULL);
unixtime = (time_t)tv.tv_sec;
if( !strcasecmp(chan->language, "de" ) ) {
format = "A dBY HMS";
} else {
format = "ABdY 'digits/at' IMp";
}
if (data) {
s = data;
s = ast_strdupa(s);