remove casts from xmalloc()

This commit is contained in:
Denis Vlasenko
2006-12-19 23:36:04 +00:00
parent 2375d75f32
commit b95636c52f
15 changed files with 25 additions and 27 deletions

View File

@ -382,7 +382,7 @@ out:
/* compile the match string into a regex */
if (*match != '\0') {
/* If match is empty, we use last regex used at runtime */
sed_cmd->sub_match = (regex_t *) xmalloc(sizeof(regex_t));
sed_cmd->sub_match = xmalloc(sizeof(regex_t));
xregcomp(sed_cmd->sub_match, match, cflags);
}
free(match);