]> diplodocus.org Git - nmh/blobdiff - uip/mhlist.c
Added ct_str_type() and ct_str_subtype() functions, to translate
[nmh] / uip / mhlist.c
index f9dbbd68bc260e70f9f1c834df55ab424f3b663d..91b09841cdf5099a7b01ef19abb0d1bd9e51dd5c 100644 (file)
@@ -66,8 +66,6 @@ extern int userrs;
  * This is currently needed to keep mhparse happy.
  * This needs to be changed.
  */
-pid_t xpid  = 0;
-
 int debugsw = 0;
 
 #define        quitser pipeser
@@ -250,7 +248,7 @@ do_cache:
      * check if message is coming from file
      */
     if (file) {
-       if (!(cts = (CT *) calloc ((size_t) 2, sizeof(*cts))))
+       if (!(cts = (CT *) mh_xcalloc ((size_t) 2, sizeof(*cts))))
            adios (NULL, "out of memory");
        ctp = cts;
 
@@ -283,7 +281,7 @@ do_cache:
                done (1);
        seq_setprev (mp);       /* set the previous-sequence */
 
-       if (!(cts = (CT *) calloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
+       if (!(cts = (CT *) mh_xcalloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
            adios (NULL, "out of memory");
        ctp = cts;