X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fm68hc11%2Fdv-nvram.c;h=705c1203716612aaf4377be87b6b974644665468;hb=a1d1fa3e417b4bd8e79e2a731f9c6089e2d5f747;hp=4183fc15174ba0d671eaae295f724afb1ebeed7b;hpb=ecd75fc8eed3bde86036141228074a20e55dcfc9;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/m68hc11/dv-nvram.c b/sim/m68hc11/dv-nvram.c index 4183fc1517..705c120371 100644 --- a/sim/m68hc11/dv-nvram.c +++ b/sim/m68hc11/dv-nvram.c @@ -1,5 +1,5 @@ /* dv-nvram.c -- Generic driver for a non volatile ram (battery saved) - Copyright (C) 1999-2014 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. Written by Stephane Carrez (stcarrez@worldnet.fr) (From a driver model Contributed by Cygnus Solutions.) @@ -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'");