diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-10-04 08:52:24 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-10-04 08:52:24 +0000 |
commit | 26f0edc14e60747a8ca134178e90cb2b5559aaed (patch) | |
tree | 9ba5b6bf4c9581d110951eda4aa7177f1bc5a684 /gdb/aix-thread.c | |
parent | 5713b9b5c1cb873d65caba98616e3f9d92db11f6 (diff) | |
download | gdb-26f0edc14e60747a8ca134178e90cb2b5559aaed.zip gdb-26f0edc14e60747a8ca134178e90cb2b5559aaed.tar.gz gdb-26f0edc14e60747a8ca134178e90cb2b5559aaed.tar.bz2 |
Remove unnecessary cast in aix-thread.c:ptrace32.
We're casting "addr" into "addr_ptr", but this variable is actually
a parameter with that very same type...
gdb/ChangeLog:
* aix-thread.c (ptrace32): Remove cast to addr_ptr.
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r-- | gdb/aix-thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 97a5ab3..31c14e0 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -264,7 +264,7 @@ ptrace32 (int req, int id, addr_ptr addr, int data, int *buf) { errno = 0; return ptrace_check (req, id, - ptrace (req, id, (addr_ptr) addr, data, buf)); + ptrace (req, id, addr, data, buf)); } /* If *PIDP is a composite process/thread id, convert it to a |