From ec34440a080bee4d74eca272dcb46f645d93e9bf Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 19 Sep 2003 17:12:37 +0000 Subject: [PATCH] -Wall cleanup. --- linebyline.c | 5 +++-- shredtree.c | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linebyline.c b/linebyline.c index 4f80458..5d8ffea 100644 --- a/linebyline.c +++ b/linebyline.c @@ -4,6 +4,7 @@ NAME: linebyline.c -- line-oriented feature analyzer four source comparisons ******************************************************************************/ +#include #include #include #include @@ -166,7 +167,7 @@ static int filter_pass(const char *line) { char *sp, *tp; char buf[BUFSIZ]; - int changed, insignificant; + int changed; /* change all punctuation to spaces */ buf[0] = ' '; @@ -264,7 +265,7 @@ feature_t *analyzer_get(const struct filehdr_t *file, FILE *fp, linenum_t *linen void analyzer_free(const char *text) /* free a piece of storage previously handed to shredtree */ { - free(text); + free((char *)text); } void analyzer_dump(char *buf) diff --git a/shredtree.c b/shredtree.c index 647397d..a87ccf4 100644 --- a/shredtree.c +++ b/shredtree.c @@ -115,8 +115,7 @@ int shredfile(struct filehdr_t *file, /* emit hash section for specified file */ { FILE *fp; - char buf[BUFSIZ]; - int i, linecount, accepted; + int i, accepted; linenum_t linenumber; shred *display; feature_t *feature; -- 2.43.0