diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2017-01-03 21:47:38 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2017-01-03 21:47:38 +0000 |
commit | eda911c5d6a9afc22cbf73d272dc793da91fe993 (patch) | |
tree | c38af112953600f347b4dba407d4ba0865e26c0a /usr.bin | |
parent | 22d6ef70939fe4ad8d1b0596944e1c675e6146e8 (diff) |
remove unused variable repllen.
i tried to see if it could be useful, but this function is kinda crazy.
from Julien Ramseier
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/xargs/strnsubst.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/xargs/strnsubst.c b/usr.bin/xargs/strnsubst.c index feaf068b8f7..efb5a95fc09 100644 --- a/usr.bin/xargs/strnsubst.c +++ b/usr.bin/xargs/strnsubst.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strnsubst.c,v 1.5 2009/10/27 23:59:50 deraadt Exp $ */ +/* $OpenBSD: strnsubst.c,v 1.6 2017/01/03 21:47:37 tedu Exp $ */ /* $FreeBSD: strnsubst.c,v 1.6 2002/06/22 12:58:42 jmallett Exp $ */ /* @@ -31,7 +31,7 @@ void strnsubst(char **str, const char *match, const char *replstr, size_t maxsize) { char *s1, *s2, *this; - size_t matchlen, repllen, s2len; + size_t matchlen, s2len; int n; if ((s1 = *str) == NULL) @@ -50,7 +50,6 @@ strnsubst(char **str, const char *match, const char *replstr, size_t maxsize) *s2 = '\0'; s2len = 0; matchlen = strlen(match); - repllen = strlen(replstr); for (;;) { if ((this = strstr(s1, match)) == NULL) break; |