summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_threads.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-29 08:29:05 +0000
committerbde <bde@FreeBSD.org>1999-01-29 08:29:05 +0000
commitcf8e8cebcc0d1caa79eb2e92784961cfe301f5bb (patch)
treec63d1b3353b2fcece19d5bc7ffbac8511b96a66e /sys/kern/kern_threads.c
parentc9d851cd134f45e297e380c497f352c0dc18bc0c (diff)
downloadFreeBSD-src-cf8e8cebcc0d1caa79eb2e92784961cfe301f5bb.zip
FreeBSD-src-cf8e8cebcc0d1caa79eb2e92784961cfe301f5bb.tar.gz
Removed bogus casts to c_caddr_t. This is part of terminating
c_caddr_t with extreme prejudice. Here the original casts to caddr_t were to support K&R compilers (or missing prototypes), but the relevant source files require an ANSI compiler.
Diffstat (limited to 'sys/kern/kern_threads.c')
-rw-r--r--sys/kern/kern_threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_threads.c b/sys/kern/kern_threads.c
index 6c7bcf2..ba5b35d 100644
--- a/sys/kern/kern_threads.c
+++ b/sys/kern/kern_threads.c
@@ -46,7 +46,7 @@
* in Germany will I accept domestic beer. This code may or may not work
* and I certainly make no claims as to its fitness for *any* purpose.
*
- * $Id: kern_threads.c,v 1.12 1999/01/27 21:49:56 dillon Exp $
+ * $Id: kern_threads.c,v 1.13 1999/01/28 17:31:59 dillon Exp $
*/
#include <sys/param.h>
@@ -79,7 +79,7 @@ thr_sleep(struct proc *p, struct thr_sleep_args *uap) {
/*
* Get timespec struct
*/
- if ((error = copyin((c_caddr_t) uap->timeout, (caddr_t) &ts, sizeof ts)) != 0) {
+ if ((error = copyin(uap->timeout, &ts, sizeof(ts))) != 0) {
p->p_wakeup = 0;
return error;
}
OpenPOWER on IntegriCloud