diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-09-14 22:15:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-09-14 23:21:53 -0400 |
commit | 381766ce4b11454607f025aafb6767aa9789d271 (patch) | |
tree | 8aa7a0976703db20a5fc12d128414068020d47af /src/common/torint.h | |
parent | 0edc39303d32537ed95c171de6a7ad0f068b60df (diff) | |
download | tor-381766ce4b11454607f025aafb6767aa9789d271.tar.gz tor-381766ce4b11454607f025aafb6767aa9789d271.zip |
Implement proposal 167: Authorities vote on network parameters.
This code adds a new field to vote on: "params". It consists of a list of
sorted key=int pairs. The output is computed as the median of all the
integers for any key on which anybody voted.
Improved with input from Roger.
Diffstat (limited to 'src/common/torint.h')
-rw-r--r-- | src/common/torint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h index 1f7421174a..be624e04c6 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -117,6 +117,9 @@ typedef unsigned int uint32_t; #ifndef INT32_MAX #define INT32_MAX 0x7fffffffu #endif +#ifndef INT32_MIN +#define INT32_MIN (-2147483647-1) +#endif #endif #if (SIZEOF_LONG == 4) |