Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/arch/powerpc Use long instead of int for pt...



details:   https://anonhg.NetBSD.org/src/rev/6caa7411293f
branches:  trunk
changeset: 789243:6caa7411293f
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Aug 11 12:23:02 2013 +0000

description:
Use long instead of int for ptrace addr.  This makes things compile
better on powerpc64 with a compiler which warns about int-to-pointer
casts.
XXX: sys/ptrace.h on Linux says that the addr parameter is a "void *".

diffstat:

 sys/compat/linux/arch/powerpc/syscalls.master |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f0fd765f1ffe -r 6caa7411293f sys/compat/linux/arch/powerpc/syscalls.master
--- a/sys/compat/linux/arch/powerpc/syscalls.master     Sun Aug 11 10:37:08 2013 +0000
+++ b/sys/compat/linux/arch/powerpc/syscalls.master     Sun Aug 11 12:23:02 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp $  
+       $NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -112,7 +112,7 @@
 24     NOARGS          { uid_t|sys||getuid(void); }
 25     STD             { int|linux_sys||stime(linux_time_t *t); }
 26     STD             { int|linux_sys||ptrace(int request, int pid, \
-                           int addr, int data); }
+                           long addr, int data); }
 27     STD             { int|linux_sys||alarm(unsigned int secs); }
 28     OBSOL           ofstat
 29     STD             { int|linux_sys||pause(void); }



Home | Main Index | Thread Index | Old Index