diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-23 17:29:16 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-23 17:29:16 +0000 |
commit | 22813ed533093a8d0e6d233f29060e2278b3d645 (patch) | |
tree | ac3b76155b96add4632f2c3d079ad1e3576a4d5f /main/sched.c | |
parent | d70bda8728e4dcddf5d74a567a9a6ffbef5ee782 (diff) |
Fix a regression in scheduler entry ordering, and add a regression test for it.
(closes issue #14522)
Reported by: pj
Tested by: russell
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@178022 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/sched.c')
-rw-r--r-- | main/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/sched.c b/main/sched.c index e1d43baee..86c01143f 100644 --- a/main/sched.c +++ b/main/sched.c @@ -233,7 +233,7 @@ static unsigned int sched_hash(const void *obj) static int sched_time_cmp(void *a, void *b) { - return ast_tvcmp(((struct sched *) a)->when, ((struct sched *) b)->when); + return ast_tvcmp(((struct sched *) b)->when, ((struct sched *) a)->when); } struct sched_context *sched_context_create(void) |