diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-08-16 01:21:52 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-08-16 01:21:52 +0000 |
commit | 86a14a7a0aa00514f670234d7da4fca666ef97b2 (patch) | |
tree | 15b6ec0d874d0adefec798c7746356bdd80ceb8c /sys/compat | |
parent | 9d97be35113fa6aa1f070bb8fca7f5a78aeb46b2 (diff) | |
download | src-86a14a7a0aa00514f670234d7da4fca666ef97b2.tar.gz src-86a14a7a0aa00514f670234d7da4fca666ef97b2.zip |
Use [u]intptr_t instead of [u_]long for casts between pointers and
integers. Don't forget to cast to (void *) as well.
Notes
Notes:
svn path=/head/; revision=38354
Diffstat (limited to 'sys/compat')
-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 ec420fabff8f..3647f84c53d1 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, |