diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-08-13 01:41:57 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-08-13 22:46:27 -0700 |
commit | 527aaa4a3143afedd8dd85aa70862328a9dbe627 (patch) | |
tree | 5110c46b53b2d0cfb648a3fab594c5b89aa5b2df /sim/m68hc11/dv-m68hc11spi.c | |
parent | 4c171e25a8c83fc26b78430fa632fa9e64f61050 (diff) | |
download | gdb-527aaa4a3143afedd8dd85aa70862328a9dbe627.zip gdb-527aaa4a3143afedd8dd85aa70862328a9dbe627.tar.gz gdb-527aaa4a3143afedd8dd85aa70862328a9dbe627.tar.bz2 |
sim: m68hc11: fix up various prototype related warnings
A few funcs are only used locally, so mark them static to avoid warnings
due to -Wmissing-prototypes.
Some funcs cast the return value wrong, so drop them (and let void * just
work by default).
Update some prototypes to be new style.
Diffstat (limited to 'sim/m68hc11/dv-m68hc11spi.c')
-rw-r--r-- | sim/m68hc11/dv-m68hc11spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c index 4bcfb95..a4e9148 100644 --- a/sim/m68hc11/dv-m68hc11spi.c +++ b/sim/m68hc11/dv-m68hc11spi.c @@ -234,7 +234,7 @@ set_bit_port (struct hw *me, sim_cpu *cpu, int port, int mask, int value) #define SPI_START_BIT 1 #define SPI_MIDDLE_BIT 2 -void +static void m68hc11spi_clock (struct hw *me, void *data) { SIM_DESC sd; |