about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-25T10·55+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-25T10·55+0100
commit7873cfb18df352d75628ea8f6f426a0c8e066ab7 (patch)
tree67dc870363f7c96b1e2a82768c2b2f430fc4898d
parentf1bdeac9864de8cd9994bb41da79f3a4d812dadc (diff)
Fix build
-rw-r--r--src/nix/build.cc2
-rw-r--r--src/nix/command.cc2
-rw-r--r--src/nix/hash.cc8
3 files changed, 6 insertions, 6 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc
index 35603f557a..812464d758 100644
--- a/src/nix/build.cc
+++ b/src/nix/build.cc
@@ -43,4 +43,4 @@ struct CmdBuild : StoreCommand, MixDryRun, MixInstallables
     }
 };
 
-static RegisterCommand r1(make_ref<Command, CmdBuild>());
+static RegisterCommand r1(make_ref<CmdBuild>());
diff --git a/src/nix/command.cc b/src/nix/command.cc
index 6988633493..9c80f43093 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -59,7 +59,7 @@ bool MultiCommand::processArgs(const Strings & args, bool finish)
 
 void StoreCommand::run()
 {
-    run(openStore(reserveSpace));
+    run(openStore());
 }
 
 }
diff --git a/src/nix/hash.cc b/src/nix/hash.cc
index 452aa4ef67..5dd891e8ad 100644
--- a/src/nix/hash.cc
+++ b/src/nix/hash.cc
@@ -45,8 +45,8 @@ struct CmdHash : Command
     }
 };
 
-static RegisterCommand r1(make_ref<Command, CmdHash>(CmdHash::mFile));
-static RegisterCommand r2(make_ref<Command, CmdHash>(CmdHash::mPath));
+static RegisterCommand r1(make_ref<CmdHash>(CmdHash::mFile));
+static RegisterCommand r2(make_ref<CmdHash>(CmdHash::mPath));
 
 struct CmdToBase : Command
 {
@@ -82,8 +82,8 @@ struct CmdToBase : Command
     }
 };
 
-static RegisterCommand r3(make_ref<Command, CmdToBase>(false));
-static RegisterCommand r4(make_ref<Command, CmdToBase>(true));
+static RegisterCommand r3(make_ref<CmdToBase>(false));
+static RegisterCommand r4(make_ref<CmdToBase>(true));
 
 /* Legacy nix-hash command. */
 static int compatNixHash(int argc, char * * argv)