]> diplodocus.org Git - nmh/blobdiff - uip/picksbr.c
Put parameter names in h/utils.h memory function prototypes.
[nmh] / uip / picksbr.c
index d444cd6853d604cc17db5d95c7c1418f896e7726..99d976d7246f0ec62067ed9c4f84a69b7bd9fe62 100644 (file)
@@ -459,9 +459,7 @@ newnexus (int (*action)())
 {
     register struct nexus *p;
 
-    if ((p = (struct nexus *) calloc ((size_t) 1, sizeof *p)) == NULL)
-       adios (NULL, "unable to allocate component storage");
-
+    p = mh_xcalloc(1, sizeof *p);
     p->n_action = action;
     return p;
 }