--- libaitsched/src/hooks.c 2019/01/14 15:58:50 1.34 +++ libaitsched/src/hooks.c 2019/01/31 22:31:40 1.34.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.34 2019/01/14 15:58:50 misho Exp $ +* $Id: hooks.c,v 1.34.2.1 2019/01/31 22:31:40 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2018 +Copyright 2004 - 2019 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -723,7 +723,7 @@ sched_hook_node(void *task, void *arg) sched_task_t *t = task; struct kevent chg[1]; struct timespec timeout = { 0, 0 }; - u_int addflags = (u_int) arg; + u_int addflags = (u_int) (uintptr_t) arg; if (!t || !TASK_ROOT(t)) return (void*) -1;