remove unnecessary casts
[mmh] / sbr / brkstring.c
index acbba6a..a9446fe 100644 (file)
@@ -30,7 +30,7 @@ brkstring(char *str, char *brksep, char *brkterm)
        /* allocate initial space for pointers on first call */
        if (!broken) {
                len = NUMBROKEN;
-               broken = (char **)mh_xcalloc((size_t)len, sizeof(*broken));
+               broken = mh_xcalloc(len, sizeof(*broken));
        }
 
        /*
@@ -42,8 +42,7 @@ brkstring(char *str, char *brksep, char *brkterm)
                /* enlarge pointer array, if necessary */
                if (i >= len) {
                        len += NUMBROKEN;
-                       broken = mh_xrealloc(broken,
-                                       (size_t)(len * sizeof(*broken)));
+                       broken = mh_xrealloc(broken, len * sizeof(*broken));
                }
 
                /* handle separators */