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/i386/linux/imgact_linux.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/i386/linux/imgact_linux.c')
-rw-r--r-- | sys/i386/linux/imgact_linux.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c index 5f85902..b91b6ab 100644 --- a/sys/i386/linux/imgact_linux.c +++ b/sys/i386/linux/imgact_linux.c @@ -28,7 +28,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: imgact_linux.c,v 1.27 1998/02/11 01:46:49 eivind Exp $ + * $Id: imgact_linux.c,v 1.28 1998/07/29 16:43:00 bde Exp $ */ #include <sys/param.h> @@ -146,8 +146,8 @@ exec_linux_imgact(imgp) if (error) return error; - 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); vm_map_remove(kernel_map, buffer, buffer + round_page(a_out->a_text + a_out->a_data + file_offset)); @@ -219,8 +219,9 @@ exec_linux_imgact(imgp) /* Fill in process VM information */ vmspace->vm_tsize = round_page(a_out->a_text) >> PAGE_SHIFT; vmspace->vm_dsize = round_page(a_out->a_data + bss_size) >> PAGE_SHIFT; - vmspace->vm_taddr = (caddr_t)virtual_offset; - vmspace->vm_daddr = (caddr_t)virtual_offset + a_out->a_text; + vmspace->vm_taddr = (caddr_t)(void *)(uintptr_t)virtual_offset; + vmspace->vm_daddr = (caddr_t)(void *)(uintptr_t) + (virtual_offset + a_out->a_text); /* Fill in image_params */ imgp->interpreted = 0; |