remote-sim.c: Add casts
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 3 Nov 2015 18:33:11 +0000 (13:33 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 3 Nov 2015 18:33:11 +0000 (13:33 -0500)
commit653090d3219377766f1d4597819fa3c805ce49eb
tree2aa8ddb037e3a614ade34988cb73b6f8e418fce0
parent2bc84e8a6d94d9d7ead1bc4febf0fb331394406e
remote-sim.c: Add casts

Mostly some casts from "generic arg" void* to the actual type.

There are two (enum gdb_signal) casts.  I tried to see if it would have
been better to change the type of sigrc, but it has a double role, as an
enum and as an integer, so I left it as is.

gdb/ChangeLog:

* remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
(get_sim_inferior_data): Likewise.
(sim_inferior_data_cleanup): Likewise.
(gdbsim_close_inferior): Likewise.
(gdbsim_resume_inferior): Likewise.
(gdbsim_wait): Likewise.
(simulator_command): Likewise.
(sim_command_completer): Likewise.
gdb/ChangeLog
gdb/remote-sim.c