[svn-commits] trunk r37586 - /trunk/sched.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Jul 13 15:03:47 MST 2006
Author: russell
Date: Thu Jul 13 17:03:47 2006
New Revision: 37586
URL: http://svn.digium.com/view/asterisk?rev=37586&view=rev
Log:
fix some typos in the conversion from the old SOONER macro to ast_tvcmp
Modified:
trunk/sched.c
Modified: trunk/sched.c
URL: http://svn.digium.com/view/asterisk/trunk/sched.c?rev=37586&r1=37585&r2=37586&view=diff
==============================================================================
--- trunk/sched.c (original)
+++ trunk/sched.c Thu Jul 13 17:03:47 2006
@@ -176,7 +176,7 @@
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 @@
* 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);
More information about the svn-commits
mailing list