diff options
Diffstat (limited to 'libcpp/makedepend.c')
-rw-r--r-- | libcpp/makedepend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/makedepend.c b/libcpp/makedepend.c index f28f9699828..7581c975515 100644 --- a/libcpp/makedepend.c +++ b/libcpp/makedepend.c @@ -47,7 +47,7 @@ static cpp_dir *cmd_line_searchpath; static void add_clm (const char *macro, bool is_undef) { - struct cmd_line_macro *clm = xmalloc (sizeof (struct cmd_line_macro)); + struct cmd_line_macro *clm = XNEW (struct cmd_line_macro); clm->next = cmd_line_macros; clm->is_undef = is_undef; clm->macro = macro; @@ -57,7 +57,7 @@ add_clm (const char *macro, bool is_undef) static void add_dir (char *name, bool sysp) { - cpp_dir *dir = xmalloc (sizeof (cpp_dir)); + cpp_dir *dir = XNEW (cpp_dir); dir->next = cmd_line_searchpath; dir->name = name; dir->sysp = sysp; |