Fix -Wpointer-sign warning in sol-thread.c
authorJoel Brobecker <brobecker@gnat.com>
Tue, 30 Apr 2013 11:52:13 +0000 (11:52 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 30 Apr 2013 11:52:13 +0000 (11:52 +0000)
commit019c1128ac20f7a8eb2d1eaeb4f69278948dd7bd
tree2df8f4eb23818f7d76bb7bc0c9e7d17dce63d6a7
parent5812197ca1f549b2a66374def03537638326e8c0
Fix -Wpointer-sign warning in sol-thread.c

This fixes a couple of compiler warnings in rw_common when calling
target_read_memory/target_write_memory due to the type of parameter
"buf" (char *) not matching what these function expect (gdb_byte *).

gdb/ChangeLog:

        * sol-thread.c (rw_common): Change type of parameter "buf"
        to "gdb_byte *".
        (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
        rw_common to "gdb_byte *" instead of "char *".
gdb/ChangeLog
gdb/sol-thread.c