remove unnecessary casts
[mmh] / uip / mhbuild.c
index 76826c3..ca7c5bf 100644 (file)
@@ -330,7 +330,7 @@ build_mime(char *infile)
        /*
        ** Allocate space for primary (outside) content
        */
-       ct = (CT) mh_xcalloc(1, sizeof(*ct));
+       ct = mh_xcalloc(1, sizeof(*ct));
 
        /*
        ** Allocate structure for handling decoded content
@@ -434,7 +434,7 @@ build_mime(char *infile)
        ct->c_subtype = MULTI_MIXED;
        ct->c_file = getcpy(infile);
 
-       m = (struct multipart *) mh_xcalloc(1, sizeof(*m));
+       m = mh_xcalloc(1, sizeof(*m));
        ct->c_ctparams = (void *) m;
        pp = &m->mp_parts;
 
@@ -453,7 +453,7 @@ build_mime(char *infile)
                if (!p)
                        continue;
 
-               part = (struct part *) mh_xcalloc(1, sizeof(*part));
+               part = mh_xcalloc(1, sizeof(*part));
                *pp = part;
                pp = &part->mp_next;
                part->mp_part = p;
@@ -533,7 +533,7 @@ init_decoded_content(CT ct)
 {
        CE ce;
 
-       ce = (CE) mh_xcalloc(1, sizeof(*ce));
+       ce = mh_xcalloc(1, sizeof(*ce));
 
        ct->c_cefile     = ce;
        ct->c_ceopenfnx  = open7Bit;  /* since unencoded */
@@ -593,7 +593,7 @@ user_content(FILE *in, char *file, char *buf, CT *ctp)
        }
 
        /* allocate basic Content structure */
-       ct = (CT) mh_xcalloc(1, sizeof(*ct));
+       ct = mh_xcalloc(1, sizeof(*ct));
        *ctp = ct;
 
        /* allocate basic structure for handling decoded content */
@@ -901,7 +901,7 @@ use_forw:
                        ct->c_type = CT_MULTIPART;
                        ct->c_subtype = MULTI_DIGEST;
 
-                       m = (struct multipart *) mh_xcalloc(1, sizeof(*m));
+                       m = mh_xcalloc(1, sizeof(*m));
                        ct->c_ctparams = (void *) m;
                        pp = &m->mp_parts;
 
@@ -911,7 +911,7 @@ use_forw:
                                        CT p;
                                        CE pe;
 
-                                       p = (CT) mh_xcalloc(1, sizeof(*p));
+                                       p = mh_xcalloc(1, sizeof(*p));
                                        init_decoded_content(p);
                                        pe = p->c_cefile;
                                        if (get_ctinfo("message/rfc822", p, 0)
@@ -925,7 +925,7 @@ use_forw:
                                                        msgnum);
                                        pe->ce_file = getcpy(buffer);
 
-                                       part = (struct part *) mh_xcalloc(1, sizeof(*part));
+                                       part = mh_xcalloc(1, sizeof(*part));
                                        *pp = part;
                                        pp = &part->mp_next;
                                        part->mp_part = p;
@@ -984,7 +984,7 @@ use_forw:
                ct->c_type = CT_MULTIPART;
                ct->c_subtype = vrsn;
 
-               m = (struct multipart *) mh_xcalloc(1, sizeof(*m));
+               m = mh_xcalloc(1, sizeof(*m));
                ct->c_ctparams = (void *) m;
 
                pp = &m->mp_parts;
@@ -1000,7 +1000,7 @@ use_forw:
                        if (!p)
                                continue;
 
-                       part = (struct part *) mh_xcalloc(1, sizeof(*part));
+                       part = mh_xcalloc(1, sizeof(*part));
                        *pp = part;
                        pp = &part->mp_next;
                        part->mp_part = p;