X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhparse.c;h=d3f543fb581326cd336f5254783831cc85adef7c;hp=3522a97b2d5c84a22299379771de2a6e29bef757;hb=b78007de9802005825390bee71dfce2306b42519;hpb=10eff860a28b96582526eb739fd0a55441669938 diff --git a/uip/mhparse.c b/uip/mhparse.c index 3522a97..d3f543f 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -238,7 +238,7 @@ get_content(FILE *in, char *file, int toplevel) HF hp; /* allocate the content structure */ - ct = (CT) mh_xcalloc(1, sizeof(*ct)); + ct = mh_xcalloc(1, sizeof(*ct)); ct->c_fp = in; ct->c_file = getcpy(file); @@ -976,7 +976,7 @@ InitText(CT ct) ct->c_subtype = kv->kv_value; /* allocate text character set structure */ - t = (struct text *) mh_xcalloc(1, sizeof(*t)); + t = mh_xcalloc(1, sizeof(*t)); ct->c_ctparams = (void *) t; /* scan for charset parameter */ @@ -1057,7 +1057,7 @@ InitMultiPart(CT ct) } /* allocate primary structure for multipart info */ - m = (struct multipart *) mh_xcalloc(1, sizeof(*m)); + m = mh_xcalloc(1, sizeof(*m)); ct->c_ctparams = (void *) m; /* check if boundary parameter contains only whitespace characters */ @@ -1100,7 +1100,7 @@ InitMultiPart(CT ct) if (strcmp(buffer + 2, m->mp_start)!=0) continue; next_part: - part = (struct part *) mh_xcalloc(1, sizeof(*part)); + part = mh_xcalloc(1, sizeof(*part)); *next = part; next = &part->mp_next; @@ -1214,7 +1214,7 @@ reverse_parts(CT ct) i++; /* allocate array of pointers to the parts */ - base = (struct part **) mh_xcalloc((size_t) (i + 1), sizeof(*base)); + base = mh_xcalloc(i + 1, sizeof(*base)); bmp = base; /* point at all the parts */ @@ -1270,7 +1270,7 @@ InitMessage(CT ct) char **ap, **ep; struct partial *p; - p = (struct partial *) mh_xcalloc(1, sizeof(*p)); + p = mh_xcalloc(1, sizeof(*p)); ct->c_ctparams = (void *) p; /* @@ -1382,7 +1382,7 @@ init_encoding(CT ct, OpenCEFunc openfnx) { CE ce; - ce = (CE) mh_xcalloc(1, sizeof(*ce)); + ce = mh_xcalloc(1, sizeof(*ce)); ct->c_cefile = ce; ct->c_ceopenfnx = openfnx;