aboutsummaryrefslogtreecommitdiffstats
path: root/sched.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-13 22:03:47 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-13 22:03:47 +0000
commitd4da764a7a076b486b28c20429caf769f477fb89 (patch)
treec3850c3853e7c00828b8ea961d13081f845212c5 /sched.c
parent8797054ad93a181bb12d0df6942f3737c39c24ce (diff)
fix some typos in the conversion from the old SOONER macro to ast_tvcmp
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37586 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'sched.c')
-rw-r--r--sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sched.c b/sched.c
index 2fe7ad025..30b0af243 100644
--- a/sched.c
+++ b/sched.c
@@ -176,7 +176,7 @@ static void schedule(struct sched_context *con, struct sched *s)
struct sched *cur = NULL;
AST_LIST_TRAVERSE_SAFE_BEGIN(&con->schedq, cur, list) {
- if (ast_tvcmp(s->when, cur->when) == 1) {
+ if (ast_tvcmp(s->when, cur->when) == -1) {
AST_LIST_INSERT_BEFORE_CURRENT(&con->schedq, s, list);
break;
}
@@ -339,7 +339,7 @@ int ast_sched_runq(struct sched_context *con)
* close together.
*/
tv = ast_tvadd(ast_tvnow(), ast_tv(0, 1000));
- if (ast_tvcmp(AST_LIST_FIRST(&con->schedq)->when, tv) != 1)
+ if (ast_tvcmp(AST_LIST_FIRST(&con->schedq)->when, tv) != -1)
break;
current = AST_LIST_REMOVE_HEAD(&con->schedq, list);