summaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-09 12:08:03 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-09 12:08:03 -0400
commit1eea7a68ed1534493ba2def4e2086fe8d9046e74 (patch)
tree78ba32b339f277905414f1618e492745a27568ef /src/ext
parent409a56281eda6e0f39ecb1a2737eb4ab39b0229b (diff)
downloadtor-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.c4
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 *