Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/common Force *stackp to (uintptr_t) before ...



details:   https://anonhg.NetBSD.org/src/rev/1e43740eb634
branches:  trunk
changeset: 808973:1e43740eb634
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 11 02:54:00 2015 +0000

description:
Force *stackp to (uintptr_t) before possibly moving to a smaller pointer size.

diffstat:

 sys/compat/linux/common/linux_exec_elf32.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7994501c05bb -r 1e43740eb634 sys/compat/linux/common/linux_exec_elf32.c
--- a/sys/compat/linux/common/linux_exec_elf32.c        Wed Jun 10 23:16:27 2015 +0000
+++ b/sys/compat/linux/common/linux_exec_elf32.c        Thu Jun 11 02:54:00 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec_elf32.c,v 1.92 2015/03/20 20:36:27 maxv Exp $       */
+/*     $NetBSD: linux_exec_elf32.c,v 1.93 2015/06/11 02:54:00 matt Exp $       */
 
 /*-
  * Copyright (c) 1995, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.92 2015/03/20 20:36:27 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.93 2015/06/11 02:54:00 matt Exp $");
 
 #ifndef ELFSIZE
 /* XXX should die */
@@ -460,7 +460,7 @@
        a++;
 
        a->a_type = LINUX_AT_RANDOM;
-       a->a_v = (Elf_Addr)*stackp;
+       a->a_v = (Elf_Addr)(uintptr_t)*stackp;
        a++;
 
        a->a_type = AT_NULL;



Home | Main Index | Thread Index | Old Index