]> thyrsus.com Git - comparator.git/commitdiff
-Wall cleanup.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 19 Sep 2003 17:12:37 +0000 (17:12 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 19 Sep 2003 17:12:37 +0000 (17:12 +0000)
linebyline.c
shredtree.c

index 4f804588eb4d978899b019d0d1844b0dc2285ee8..5d8ffea7928960f6fd44430aad9ca927f34ad06d 100644 (file)
@@ -4,6 +4,7 @@ NAME:
    linebyline.c -- line-oriented feature analyzer four source comparisons
 
 ******************************************************************************/
+#include <stdlib.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <regex.h>
@@ -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)
index 647397d4cece9f3b730ef327f024128b563de479..a87ccf421ce5865fce583c1ec943498e399edc2f 100644 (file)
@@ -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;