--- libaitsched/src/aitsched.c 2011/10/04 20:31:39 1.2.2.4 +++ libaitsched/src/aitsched.c 2011/10/04 23:12:33 1.2.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.2.2.4 2011/10/04 20:31:39 misho Exp $ +* $Id: aitsched.c,v 1.2.2.5 2011/10/04 23:12:33 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -323,7 +323,7 @@ schedCancelby(sched_root_task_t * __restrict root, sch break; } } else if (criteria == CRITERIA_FD) { - if (TASK_FD(task) == (int) param) { + if (TASK_FD(task) == (intptr_t) param) { flg++; break; } @@ -333,7 +333,7 @@ schedCancelby(sched_root_task_t * __restrict root, sch break; } } else if (criteria == CRITERIA_TV) { - if (!memcmp(&TASK_TV(task), param, sizeof(struct timeval))) { + if (!timercmp(&TASK_TV(task), (struct timeval*) param, -)) { flg++; break; }