diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-26 11:02:07 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-26 11:02:07 +0000 |
commit | 5dd8fb20691c375778fd73bf613d4988df72fb50 (patch) | |
tree | 942d57bc30560be4675190ba0507b813a95a5b10 /src/libstore/store-api.cc | |
parent | 92f525ecf4ea8a9bd356acd1d3845074b1e5b918 (diff) |
* Don't use ULLONG_MAX in maxFreed - use 0 to mean "no limit".
18446744073709551615ULL breaks on GCC 3.3.6 (`integer constant is
too large for "long" type').
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index e80be1e68..eb75d3ada 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -5,12 +5,6 @@ #include <limits.h> -/* Needed for some ancient environments. */ -#ifndef ULLONG_MAX -#define ULLONG_MAX 18446744073709551615ULL -#endif - - namespace nix { @@ -18,7 +12,7 @@ GCOptions::GCOptions() { action = gcDeleteDead; ignoreLiveness = false; - maxFreed = ULLONG_MAX; + maxFreed = 0; maxLinks = 0; useAtime = false; maxAtime = (time_t) -1; |