use XNEW and related macros more
[deliverable/binutils-gdb.git] / gas / macro.c
index cddf26ab79ea23599d449f5b817f508181aa7907..615bfdae4fdd137a210ed7a8325cffa29f7b16ca 100644 (file)
@@ -471,7 +471,7 @@ new_formal (void)
 {
   formal_entry *formal;
 
-  formal = (formal_entry *) xmalloc (sizeof (formal_entry));
+  formal = XNEW (formal_entry);
 
   sb_new (&formal->name);
   sb_new (&formal->def);
@@ -655,7 +655,7 @@ define_macro (size_t idx, sb *in, sb *label,
   sb name;
   const char *error = NULL;
 
-  macro = (macro_entry *) xmalloc (sizeof (macro_entry));
+  macro = XNEW (macro_entry);
   sb_new (&macro->sub);
   sb_new (&name);
   macro->file = file;
This page took 0.02494 seconds and 4 git commands to generate.