(remove_dir): Use xmalloc, not XMALLOC.
(ds_init): Likewise.
static Dirstack_state *
ds_init ()
{
- Dirstack_state *ds = XMALLOC (struct dirstack_state, 1);
+ Dirstack_state *ds = xmalloc (sizeof *ds);
obstack_init (&ds->dir_stack);
obstack_init (&ds->len_stack);
obstack_init (&ds->Active_dir);
if (*cwd_state == NULL)
{
- *cwd_state = XMALLOC (struct saved_cwd, 1);
+ *cwd_state = xmalloc (sizeof **cwd_state);
if (save_cwd (*cwd_state))
{
error (0, errno, _("cannot get current directory"));
ds_free (ds);
- XFREE (cwd_state);
+ free (cwd_state);
return status;
}