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: https://origsvn.digium.com/svn/asterisk/trunk@178022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2009-02-23 17:29:16 +00:00
parent c880aa936b
commit 989e617e1f
2 changed files with 118 additions and 3 deletions

View File

@@ -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)