aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/dv-nvram.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-08-13 01:41:57 -0700
committerMike Frysinger <vapier@gentoo.org>2016-08-13 22:46:27 -0700
commit527aaa4a3143afedd8dd85aa70862328a9dbe627 (patch)
tree5110c46b53b2d0cfb648a3fab594c5b89aa5b2df /sim/m68hc11/dv-nvram.c
parent4c171e25a8c83fc26b78430fa632fa9e64f61050 (diff)
downloadgdb-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-nvram.c')
-rw-r--r--sim/m68hc11/dv-nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m68hc11/dv-nvram.c b/sim/m68hc11/dv-nvram.c
index 6a27a32..6a72c96 100644
--- a/sim/m68hc11/dv-nvram.c
+++ b/sim/m68hc11/dv-nvram.c
@@ -186,7 +186,7 @@ attach_nvram_regs (struct hw *me, struct nvram *controller)
case NVRAM_SAVE_MODIFIED:
case NVRAM_SAVE_ALL:
- controller->data = (char*) hw_malloc (me, attach_size);
+ controller->data = hw_malloc (me, attach_size);
if (controller->data == 0)
hw_abort (me, "Not enough memory, try to use the mode 'map'");