projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove unnecessary casts
[mmh]
/
uip
/
mhparse.c
diff --git
a/uip/mhparse.c
b/uip/mhparse.c
index
3522a97
..
d3f543f
100644
(file)
--- 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 */
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);
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 */
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 */
ct->c_ctparams = (void *) t;
/* scan for charset parameter */
@@
-1057,7
+1057,7
@@
InitMultiPart(CT ct)
}
/* allocate primary structure for multipart info */
}
/* 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 */
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:
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;
*next = part;
next = &part->mp_next;
@@
-1214,7
+1214,7
@@
reverse_parts(CT ct)
i++;
/* allocate array of pointers to the parts */
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 */
bmp = base;
/* point at all the parts */
@@
-1270,7
+1270,7
@@
InitMessage(CT ct)
char **ap, **ep;
struct partial *p;
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;
/*
ct->c_ctparams = (void *) p;
/*
@@
-1382,7
+1382,7
@@
init_encoding(CT ct, OpenCEFunc openfnx)
{
CE ce;
{
CE ce;
- ce = (CE) mh_xcalloc(1, sizeof(*ce));
+ ce = mh_xcalloc(1, sizeof(*ce));
ct->c_cefile = ce;
ct->c_ceopenfnx = openfnx;
ct->c_cefile = ce;
ct->c_ceopenfnx = openfnx;