Use ((x + 7) >> 3) instead of (x >> 3) when converting from bits to bytes.
[tor.git] / src / trunnel / trunnel-local.h
blobc4118fce4c3535dcf32782fbe8ccca77c1c6a128
2 #ifndef TRUNNEL_LOCAL_H_INCLUDED
3 #define TRUNNEL_LOCAL_H_INCLUDED
5 #include "lib/crypt_ops/crypto_util.h"
6 #include "lib/malloc/malloc.h"
7 #include "lib/log/util_bug.h"
9 #define trunnel_malloc tor_malloc
10 #define trunnel_calloc tor_calloc
11 #define trunnel_strdup tor_strdup
12 #define trunnel_free_ tor_free_
13 #define trunnel_realloc tor_realloc
14 #define trunnel_reallocarray tor_reallocarray
15 #define trunnel_assert tor_assert
16 #define trunnel_memwipe(mem, len) memwipe((mem), 0, (len))
18 #endif