about summary refs log tree commit diff
path: root/src/nix-store/dotgraph.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-01-13T15·44+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-01-13T15·44+0000
commit73992371a3bc16b27b22e53d5f7ae600dea9cf60 (patch)
treed1e5db8cea5caacff34ac4e9b61195b97dbd9ceb /src/nix-store/dotgraph.cc
parentd46b4262dc84689c3916583b91ed9fc6dafefdd6 (diff)
* Refactoring to support SHA-1.
Diffstat (limited to 'src/nix-store/dotgraph.cc')
-rw-r--r--src/nix-store/dotgraph.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix-store/dotgraph.cc b/src/nix-store/dotgraph.cc
index c670bf19e4c5..b13846c049c1 100644
--- a/src/nix-store/dotgraph.cc
+++ b/src/nix-store/dotgraph.cc
@@ -39,9 +39,9 @@ static string makeNode(const string & id, const string & label,
 static string symbolicName(const string & path)
 {
     string p = baseNameOf(path);
-    if (isHash(string(p, 0, Hash::hashSize * 2)) && 
-	p[Hash::hashSize * 2] == '-')
-	p = string(p, Hash::hashSize * 2 + 1);
+    if (isHash(string(p, 0, md5HashSize * 2)) && 
+	p[md5HashSize * 2] == '-')
+	p = string(p, md5HashSize * 2 + 1);
     return p;
 }