]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
add the byte length of the hash into the hash result. This gains some
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 Mar 2002 00:38:29 +0000 (01:38 +0100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 28 Mar 2002 00:38:29 +0000 (01:38 +0100)
bits, plus is useful for seeing how large the compiles are.

this breaks all existing caches ...

hash.c

diff --git a/hash.c b/hash.c
index e4ec119ff903546f7457100125b165d758013d96..69c8bef8e8703ccdbcdd1d481d4812837578b359 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -71,7 +71,7 @@ char *hash_result(void)
        mdfour_result(&md, sum);
        
        for (i=0;i<16;i++) {
-               sprintf(&ret[i*2], "%02x", (unsigned)sum[i]);
+               sprintf(&ret[i*2], "%02x-%d", (unsigned)sum[i], md.totalN);
        }
 
        return ret;