Date: Sat, 14 Oct 2006 12:14:58 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 107884 for review Message-ID: <200610141214.k9ECEwYn090739@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107884 Change 107884 by rdivacky@rdivacky_witten on 2006/10/14 12:13:59 Make it compilable on amd64. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#13 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#13 (text+ko) ==== @@ -1574,12 +1574,12 @@ case LINUX_PR_GET_PDEATHSIG: em = em_find(p, EMUL_UNLOCKED); KASSERT(em != NULL, ("prctl: emuldata not found.\n")); - error = copyout(&em->pdeath_signal, (void *) args->arg2, sizeof(em->pdeath_signal)); + error = copyout(&em->pdeath_signal, (void *)(register_t) args->arg2, sizeof(em->pdeath_signal)); EMUL_UNLOCK(&emul_lock); break; case LINUX_PR_SET_NAME: comm[LINUX_MAX_COMM_LEN-1] = 0; - error = copyin(comm, (void *) args->arg2, LINUX_MAX_COMM_LEN-1); + error = copyin(comm, (void *)(register_t) args->arg2, LINUX_MAX_COMM_LEN-1); if (error) return (error); PROC_LOCK(p); @@ -1587,7 +1587,7 @@ PROC_UNLOCK(p); break; case LINUX_PR_GET_NAME: - error = copyout(&p->p_comm, (void *) args->arg2, MAXCOMLEN+1); + error = copyout(&p->p_comm, (void *)(register_t) args->arg2, MAXCOMLEN+1); break; default: error = EINVAL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610141214.k9ECEwYn090739>