diff options
author | Denis Vlasenko | 2006-12-19 23:36:04 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-19 23:36:04 +0000 |
commit | b95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch) | |
tree | 0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /editors/sed.c | |
parent | 2375d75f3267e6e4370f221fea485eac8e73d402 (diff) | |
download | busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.zip busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz |
remove casts from xmalloc()
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c index 8d372ab..95ced1c 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -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); |