* sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC

and zfree instead of xmalloc and free.  Prevents warnings.
This commit is contained in:
Stu Grossman 1997-09-25 18:22:46 +00:00
parent 89b308f49c
commit 68f92f98ac
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ sim_set_breakpoint (sd, addr)
else
break;
bp = (struct sim_breakpoint *) xmalloc (sizeof (struct sim_breakpoint));
bp = ZALLOC (struct sim_breakpoint);
bp->addr = addr;
bp->next = STATE_BREAKPOINTS (sd);
@ -200,7 +200,7 @@ sim_clear_breakpoint (sd, addr)
else
STATE_BREAKPOINTS (sd) = NULL;
free (bp);
zfree (bp);
return SIM_RC_OK;
}