From ff762fb499be220ccd680f3bf68dca44a902a5ff Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 3 Dec 2008 16:10:17 +0000 Subject: * Pass HashType values instead of strings. --- src/nix-worker/nix-worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nix-worker') diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index e4fe94926b63..c956f839ec39 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -292,7 +292,7 @@ static void performOp(unsigned int clientVersion, string baseName = readString(from); readInt(from); /* obsolete; was `fixed' flag */ bool recursive = readInt(from) == 1; - string hashAlgo = readString(from); + HashType hashAlgo = parseHashType(readString(from)); Path tmp = createTempDir(); AutoDelete delTmp(tmp); -- cgit 1.4.1