Remove RCS keywords, since they no longer work after git migration.
[mmh] / uip / install-mh.c
index 34aed95..c484771 100644 (file)
@@ -1,14 +1,13 @@
 /*
  * install-mh.c -- initialize the nmh environment of a new user
  *
- * $Id$
- *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
  */
 
 #include <h/mh.h>                              /* mh internals */
+#include <h/utils.h>
 #include <pwd.h>                               /* structure for getpwuid() results */
 
 static struct swit switches[] = {
@@ -180,8 +179,7 @@ query:
     /*
      * Add some initial elements to the profile/context list
      */
-    if (!(m_defs = (struct node *) malloc (sizeof *np)))
-       adios (NULL, "unable to allocate profile storage");
+    m_defs = (struct node *) mh_xmalloc (sizeof *np);
     np = m_defs;
     np->n_name = getcpy ("Path");
     np->n_field = getcpy (pathname);
@@ -213,7 +211,8 @@ query:
            fprintf (out, "%s: %s\n", np->n_name, np->n_field);
     }
     fclose (out);
-    return done (0);
+    done (0);
+    return 1;
 }