ed

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

commit 758264ed68da13a748b33d2f29c2bc51d3dab4b4
parent 58256e78b16e86845a977e76c42979e3b5e33fef
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 11 Dec 2015 00:03:57 +0100

fix warning for unused variables, minor style

Diffstat:
Med.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ed.c b/ed.c @@ -277,7 +277,7 @@ compile(int delim) { static char regerrbuf[BUFSIZ]; char *bp, buff[REGEXSIZE]; - int c ,ret, bracket = 0; + int c, ret, bracket = 0; if (!isgraph(delim)) error("invalid pattern delimiter"); @@ -490,7 +490,6 @@ static void dowrite(char *fname, int trunc) { FILE *fp; - char *s; int i; if (!(fp = fopen(fname, (trunc) ? "w" : "a"))) @@ -1039,7 +1038,6 @@ static void doglobal(void) { int i, k; - char *s, c; skipblank(); cmdsiz = 0;