ed

simple ed
git clone git://git.2f30.org/ed.git
Log | Files | Refs | LICENSE

commit 28c4ead6d7afb7c1f3bf6894d7570c8f2cfc98d3
parent adb5b46b04b12055639e35d04162e69f2c51f2ff
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue Dec  1 18:35:05 +0100

ed: remove some unused variable warnings

Diffstat:
ed.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/ed.c b/ed.c @@ -162,7 +162,6 @@ repeat: if (csize && p == buf + csize) goto repeat; -add_newline: addchar('\n'); addchar('\0'); return text; @@ -188,7 +187,7 @@ relink(int to1, int from1, int from2, int to2) static void inject(char *s) { - int off, k, cur, begin, end; + int off, k, begin, end; begin = getindex(curln); end = getindex(nextln(curln)); @@ -650,7 +649,6 @@ static void scroll(int num) { int i, last; - char *s; if (!line1 || line1 == lastln) error("incorrect address"); @@ -664,8 +662,7 @@ scroll(int num) static void copy(int where) { - int i, ind; - char *s; + int i; if (!line1 || where >= line1 && where <= line2) error("incorrect address");