remove unnecessary casts
[mmh] / sbr / putenv.c
index 54c4068..c47f26e 100644 (file)
@@ -25,7 +25,7 @@ m_putenv(char *name, char *value)
        int i;
        char **ep, **nep, *cp;
 
-       cp = mh_xcalloc((size_t) (strlen(name) + strlen(value) + 2), sizeof(char));
+       cp = mh_xcalloc(strlen(name) + strlen(value) + 2, sizeof(char));
 
        sprintf(cp, "%s=%s", name, value);
 
@@ -35,7 +35,7 @@ m_putenv(char *name, char *value)
                        return 0;
                }
 
-       nep = (char **) mh_xcalloc((size_t) (i + 2), sizeof(*nep));
+       nep = mh_xcalloc(i + 2, sizeof(*nep));
 
        for (ep = environ, i = 0; *ep; nep[i++] = *ep++)
                continue;