diff options
author | bde <bde@FreeBSD.org> | 1998-08-16 01:21:52 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-16 01:21:52 +0000 |
commit | 9e27b29fba08158ea646560dc2c0f671e17923cf (patch) | |
tree | ca50bac0920c7e526393546681e1b22c87541004 /sys/compat/linux/linux_misc.c | |
parent | e14b44bbf30df0b2ba5a4750b2c2806bcae489eb (diff) | |
download | FreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.zip FreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.tar.gz |
Use [u]intptr_t instead of [u_]long for casts between pointers and
integers. Don't forget to cast to (void *) as well.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index ec420fa..3647f84 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.40 1998/07/29 16:43:00 bde Exp $ + * $Id: linux_misc.c,v 1.41 1998/08/05 16:44:30 bde Exp $ */ #include <sys/param.h> @@ -327,8 +327,8 @@ printf("uselib: Non page aligned binary %lu\n", file_offset); goto cleanup; /* copy from kernel VM space to user space */ - error = copyout((caddr_t)(buffer + file_offset), (caddr_t)vmaddr, - a_out->a_text + a_out->a_data); + error = copyout((caddr_t)(void *)(uintptr_t)(buffer + file_offset), + (caddr_t)vmaddr, a_out->a_text + a_out->a_data); /* release temporary kernel space */ vm_map_remove(kernel_map, buffer, |