]> thyrsus.com Git - comparator.git/commitdiff
Clean up some compiler warnings.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 19 Oct 2010 07:29:42 +0000 (03:29 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 19 Oct 2010 07:29:42 +0000 (03:29 -0400)
main.c
report.c

diff --git a/main.c b/main.c
index ad90e86a1fff4e08bea31aa4787689d2015a7647..354d8bc0c3e0a8d87df3aaa2354e5801af058d80 100644 (file)
--- a/main.c
+++ b/main.c
@@ -171,7 +171,7 @@ static void write_scf(const char *tree, FILE *ofp)
            if (debug)
            {
                fprintf(stderr,
-                       "%d: %s %s:%d:%d",
+                       "%ld: %s %s:%d:%d",
                        np-chunk_buffer, hash_dump(this.hash),
                       *place, this.start, this.end);
                if (np->flags)
@@ -373,7 +373,7 @@ void dump_array(const char *legend,
     for (np = obarray; np < obarray + hashcount; np++)
        if (!(np->hash.flags & INTERNAL_FLAG))
        {
-           fprintf(stdout, "%2d: %s %s:%d:%d",
+           fprintf(stdout, "%2ld: %s %s:%d:%d",
                    np-obarray, 
                    hash_dump(np->hash.hash),
                    np->file->name, np->hash.start, np->hash.end);
index 068d7153e932d610d10abdc04bb45c283a407aed..03c910979c64319507843da673d764bd7d3d1b52 100644 (file)
--- a/report.c
+++ b/report.c
@@ -295,9 +295,9 @@ struct match_t *reduce_matches(struct sorthash_t *obarray, int *hashcountp)
 
         if (debug)
         {
-            printf("*** %d has %d in its clique\n", np-obarray, nmatches);
+            printf("*** %ld has %d in its clique\n", np-obarray, nmatches);
             for (i = 0; i < nmatches; i++)
-                printf("%d: %s:%d:%d\n", 
+                printf("%ld: %s:%d:%d\n", 
                        np-obarray+i, np[i].file->name, np[i].hash.start, np[i].hash.end);
         }