diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-20 18:29:46 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-20 18:29:46 +0000 |
commit | a3e273b7bd4d80e3ff8ccfca8e1ed5a0cc813d55 (patch) | |
tree | d260977b74f4e7bf6615a2c171773788918e7dcf /apps | |
parent | 9bf87d6ef0f763328be7f5756b64d754e4e37894 (diff) |
Resolve 1.6.0 compilation issues on FreeBSD.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@253630 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_waituntil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_waituntil.c b/apps/app_waituntil.c index 0a42057bb..160c302a9 100644 --- a/apps/app_waituntil.c +++ b/apps/app_waituntil.c @@ -48,6 +48,7 @@ static int waituntil_exec(struct ast_channel *chan, void *data) { int res; double fraction; + long seconds; struct timeval future = { 0, }; struct timeval tv = ast_tvnow(); int msec; @@ -58,12 +59,13 @@ static int waituntil_exec(struct ast_channel *chan, void *data) return 0; } - if (sscanf(data, "%30ld%30lf", (long *)&future.tv_sec, &fraction) == 0) { + if (sscanf(data, "%30ld%30lf", &seconds, &fraction) == 0) { ast_log(LOG_WARNING, "WaitUntil called with non-numeric argument\n"); pbx_builtin_setvar_helper(chan, "WAITUNTILSTATUS", "FAILURE"); return 0; } + future.tv_sec = seconds; future.tv_usec = fraction * 1000000; if ((msec = ast_tvdiff_ms(future, tv)) < 0) { |