diff options
Diffstat (limited to 'main/abstract_jb.c')
-rw-r--r-- | main/abstract_jb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/abstract_jb.c b/main/abstract_jb.c index 4d4704460..d5a4c7ffd 100644 --- a/main/abstract_jb.c +++ b/main/abstract_jb.c @@ -551,16 +551,16 @@ void ast_jb_destroy(struct ast_channel *chan) } -static long get_now(struct ast_jb *jb, struct timeval *tv) +static long get_now(struct ast_jb *jb, struct timeval *when) { struct timeval now; - if (!tv) { - tv = &now; - gettimeofday(tv, NULL); + if (!when) { + when = &now; + gettimeofday(when, NULL); } - return ast_tvdiff_ms(*tv, jb->timebase); + return ast_tvdiff_ms(*when, jb->timebase); } |