diff options
author | Matt Kraai | 2001-06-21 19:41:37 +0000 |
---|---|---|
committer | Matt Kraai | 2001-06-21 19:41:37 +0000 |
commit | ceeff7381929930fe8d7e33543e285d5fdcf1c68 (patch) | |
tree | 3cdbaddffecc92649215fdc71a43b4e8e86b7ea3 /editors | |
parent | 091781e20eb055ac286b5a617d53a50c7d6c451e (diff) | |
download | busybox-ceeff7381929930fe8d7e33543e285d5fdcf1c68.zip busybox-ceeff7381929930fe8d7e33543e285d5fdcf1c68.tar.gz |
Rewrote mkdir (and touched lots of things in the process).
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/editors/sed.c b/editors/sed.c index e7208b0..89b1668 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -195,15 +195,6 @@ static int get_address(struct sed_cmd *sed_cmd, const char *str, int *linenum, r return idx; } -static char *strdup_substr(const char *str, int start, int end) -{ - int size = end - start + 1; - char *newstr = xmalloc(size); - memcpy(newstr, str+start, size-1); - newstr[size-1] = '\0'; - return newstr; -} - static int parse_subst_cmd(struct sed_cmd *sed_cmd, const char *substr) { int oldidx, cflags = REG_NEWLINE; |