aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-19 23:36:04 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-19 23:36:04 +0000
commit054e71820ce24b47f88465bb95c303d558355a91 (patch)
tree0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /editors/sed.c
parenteded4f7a23932a878ae06ba41964411299db5efb (diff)
downloadbusybox-w32-054e71820ce24b47f88465bb95c303d558355a91.tar.gz
busybox-w32-054e71820ce24b47f88465bb95c303d558355a91.tar.bz2
busybox-w32-054e71820ce24b47f88465bb95c303d558355a91.zip
remove casts from xmalloc()
git-svn-id: svn://busybox.net/trunk/busybox@17011 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 8d372abe4..95ced1ceb 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -382,7 +382,7 @@ out:
382 /* compile the match string into a regex */ 382 /* compile the match string into a regex */
383 if (*match != '\0') { 383 if (*match != '\0') {
384 /* If match is empty, we use last regex used at runtime */ 384 /* If match is empty, we use last regex used at runtime */
385 sed_cmd->sub_match = (regex_t *) xmalloc(sizeof(regex_t)); 385 sed_cmd->sub_match = xmalloc(sizeof(regex_t));
386 xregcomp(sed_cmd->sub_match, match, cflags); 386 xregcomp(sed_cmd->sub_match, match, cflags);
387 } 387 }
388 free(match); 388 free(match);