]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: mempool - Remove unnecessary check
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Thu, 5 Jul 2018 14:50:32 +0000 (10:50 -0400)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 6 Feb 2019 08:08:35 +0000 (10:08 +0200)
The previous commit guarantees that we always have one of _ILP32 and _LP64
defined so we don't have to check ourselves.

src/lib/test-mempool.c

index edf6e038e438d207cccd60d2b5fe6c209ff176d0..7c707dd33a9d71261dc69348013ea1287638d1ef 100644 (file)
@@ -12,10 +12,8 @@ typedef char uint32max_array_t[65535];
 
 #if defined(_LP64)
 #define LITTLE_MAX             ((unsigned long long) INT32_MAX)
-#elif defined(_ILP32)
-#define LITTLE_MAX             ((unsigned long long) INT16_MAX)
 #else
-#error unsupported pointer size
+#define LITTLE_MAX             ((unsigned long long) INT16_MAX)
 #endif
 
 extern struct pool test_pool;