From 302c9430013d40e82a3e9925e96921ba40650db1 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 23 Feb 2006 17:13:57 +0000 Subject: 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 --- apps/app_sayunixtime.c | 4 ++-- apps/app_voicemail.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') 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 @@ -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; } -- cgit v1.2.3