diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-23 17:13:57 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-23 17:13:57 +0000 |
commit | 302c9430013d40e82a3e9925e96921ba40650db1 (patch) | |
tree | a6044b368ffd4c159c9584c7fcf17347cb8cee67 /apps | |
parent | c3447c7cce376c33d3ef7bf07ab5e4776f221534 (diff) |
add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
update pbx_dundi to use ast_get_time_t
eliminate some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_sayunixtime.c | 4 | ||||
-rw-r--r-- | apps/app_voicemail.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_sayunixtime.c b/apps/app_sayunixtime.c index d3efc0101..09ba838f9 100644 --- a/apps/app_sayunixtime.c +++ b/apps/app_sayunixtime.c @@ -1,7 +1,7 @@ /* * Asterisk -- An open source telephony toolkit. * - * Copyright (c) 2003 Tilghman Lesher. All rights reserved. + * Copyright (c) 2003, 2006 Tilghman Lesher. All rights reserved. * Copyright (c) 2006 Digium, Inc. * * Tilghman Lesher <app_sayunixtime__200309@the-tilghman.com> @@ -93,7 +93,7 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data) AST_STANDARD_APP_ARGS(args, parse); - ast_get_time_t(args.timeval, &unixtime, time(NULL)); + ast_get_time_t(args.timeval, &unixtime, time(NULL), NULL); if (chan->_state != AST_STATE_UP) res = ast_answer(chan); diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 7b9a37dfd..dc2db6e0b 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3607,7 +3607,7 @@ static int play_message_datetime(struct ast_channel *chan, struct ast_vm_user *v struct vm_zone *the_zone = NULL; time_t t; - if (ast_get_time_t(origtime, &t, 0)) { + if (ast_get_time_t(origtime, &t, 0, NULL)) { ast_log(LOG_WARNING, "Couldn't find origtime in %s\n", filename); return 0; } |