diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-13 06:03:55 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-13 06:03:55 +0000 |
commit | fe28e9f046893ebd6e574b0d8ab0860beb56f57f (patch) | |
tree | f55a4b722d890d3e7c985b64b52e833e7fd437ee /sys | |
parent | 9d5f52886f35d48e3ba5424fb140c4db736f31df (diff) |
thrsleep and thrwakeup, cast syscall arg from void * to long.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_synch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 9665e74338d..2c75a2d41e8 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.67 2005/12/03 18:09:08 tedu Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.68 2005/12/13 06:03:54 tedu Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /* @@ -384,7 +384,7 @@ int sys_thrsleep(struct proc *p, void *v, register_t *revtal) { struct sys_thrsleep_args *uap = v; - long ident = SCARG(uap, ident); + long ident = (long)SCARG(uap, ident); int timo = SCARG(uap, timeout); _spinlock_lock_t *lock = SCARG(uap, lock); _spinlock_lock_t unlocked = _SPINLOCK_UNLOCKED; @@ -422,7 +422,7 @@ int sys_thrwakeup(struct proc *p, void *v, register_t *retval) { struct sys_thrwakeup_args *uap = v; - long ident = SCARG(uap, ident); + long ident = (void *)SCARG(uap, ident); struct twaitnode *n; LIST_FOREACH(n, &p->p_thrparent->p_sleepers, t_next) { |