]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/kern_newsysctl.c
xnu-344.tar.gz
[apple/xnu.git] / bsd / kern / kern_newsysctl.c
index d24a34b5139f7cc34bcb14eb5827247789cd7983..399bbdb92e3ee90aaacea52c23b4d025b79918b4 100644 (file)
@@ -644,7 +644,7 @@ sysctl_old_kernel(struct sysctl_req *req, const void *p, size_t l)
                if (i > req->oldlen - req->oldidx)
                        i = req->oldlen - req->oldidx;
                if (i > 0) {
-                       error = copyout(p, (char *)req->oldptr + req->oldidx, i);
+                       error = copyout((void*)p, (char *)req->oldptr + req->oldidx, i);
                        if (error)
                            return error;
                }
@@ -742,7 +742,7 @@ sysctl_old_user(struct sysctl_req *req, const void *p, size_t l)
                if (i > req->oldlen - req->oldidx)
                        i = req->oldlen - req->oldidx;
                if (i > 0)
-                       error = copyout(p, (char *)req->oldptr + req->oldidx,
+                       error = copyout((void*)p, (char *)req->oldptr + req->oldidx,
                                        i);
        }
        req->oldidx += l;