diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-09 12:08:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-09 12:08:03 -0400 |
commit | 1eea7a68ed1534493ba2def4e2086fe8d9046e74 (patch) | |
tree | 78ba32b339f277905414f1618e492745a27568ef /src/ext | |
parent | 409a56281eda6e0f39ecb1a2737eb4ab39b0229b (diff) | |
download | tor-1eea7a68ed1534493ba2def4e2086fe8d9046e74.tar.gz tor-1eea7a68ed1534493ba2def4e2086fe8d9046e74.zip |
Use S?SIZE_MAX, not S?SIZE_T_MAX
This fixes bug 13102 (not on any released Tor) where using the
standard SSIZE_MAX name broke mingw64, and we didn't realize.
I did this with
perl -i -pe 's/SIZE_T_MAX/SIZE_MAX/' src/*/*.[ch] src/*/*/*.[ch]
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/OpenBSD_malloc_Linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/OpenBSD_malloc_Linux.c b/src/ext/OpenBSD_malloc_Linux.c index da82729811..e296a77be9 100644 --- a/src/ext/OpenBSD_malloc_Linux.c +++ b/src/ext/OpenBSD_malloc_Linux.c @@ -58,7 +58,7 @@ #include <limits.h> #include <errno.h> #include <err.h> -/* For SIZE_T_MAX */ +/* For SIZE_MAX */ #include "torint.h" //#include "thread_private.h" @@ -1968,7 +1968,7 @@ realloc(void *ptr, size_t size) //#if defined(__x86_64__) //#define SIZE_MAX 0xffffffffffffffff //#endif -#define SIZE_MAX SIZE_T_MAX +#define SIZE_MAX SIZE_MAX #endif void * |