mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -770,7 +770,7 @@ static int handle_saydatetime(struct ast_channel *chan, AGI *agi, int argc, char
|
||||
if (argc > 5 && !ast_strlen_zero(argv[5]))
|
||||
zone = argv[5];
|
||||
|
||||
if (ast_get_time_t(argv[2], &unixtime, 0))
|
||||
if (ast_get_time_t(argv[2], &unixtime, 0, NULL))
|
||||
return RESULT_SHOWUSAGE;
|
||||
|
||||
res = ast_say_date_with_format(chan, unixtime, argv[3], chan->language, format, zone);
|
||||
|
Reference in New Issue
Block a user