mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 12:20:12 +00:00
minor code cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
7
sched.c
7
sched.c
@@ -391,10 +391,9 @@ long ast_sched_when(struct sched_context *con,int id)
|
||||
DEBUG(ast_log(LOG_DEBUG, "ast_sched_when()\n"));
|
||||
|
||||
ast_mutex_lock(&con->lock);
|
||||
s=con->schedq;
|
||||
while (s!=NULL) {
|
||||
if (s->id==id) break;
|
||||
s=s->next;
|
||||
for (s = con->schedq; s; s = s->next) {
|
||||
if (s->id == id)
|
||||
break;
|
||||
}
|
||||
secs=-1;
|
||||
if (s!=NULL) {
|
||||
|
Reference in New Issue
Block a user