]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_compile.c
Put parameter names in h/utils.h memory function prototypes.
[nmh] / sbr / fmt_compile.c
index b1788ab64fbc8c6404ee729774fb0165fdf45e22..84ef5983e77e7684437abaf35181ba33def9fbeb 100644 (file)
@@ -409,11 +409,7 @@ fmt_compile(char *fstring, struct format **fmt, int reset_comptable)
      */
     i = strlen(fstring)/2 + 1;
                if (i==1) i++;
-    next_fp = formatvec = (struct format *)mh_xcalloc ((size_t) i,
-                                                  sizeof(struct format));
-    if (next_fp == NULL)
-       adios (NULL, "unable to allocate format storage");
-
+    next_fp = formatvec = mh_xcalloc(i, sizeof *next_fp);
     infunction = 0;
 
     cp = compile(format_string);