#endif /* HAVE_LMDB */
#ifndef SIZE_MAX
-#define SIZE_MAX ((size_t) - 1)
+#define SIZE_MAX ((size_t)-1)
#endif /* ifndef SIZE_MAX */
#ifndef SIZE_AS_PERCENT
-#define SIZE_AS_PERCENT ((size_t) - 2)
+#define SIZE_AS_PERCENT ((size_t)-2)
#endif /* ifndef SIZE_AS_PERCENT */
/* RFC7828 defines timeout as 16-bit value specified in units of 100
or = r;
or.length = length;
if (tctx->width == 0) { /* No splitting */
- RETERR(isc_base64_totext(& or, 60, "", target));
+ RETERR(isc_base64_totext(&or, 60, "", target));
} else {
- RETERR(isc_base64_totext(& or, tctx->width - 2,
+ RETERR(isc_base64_totext(&or, tctx->width - 2,
tctx->linebreak,
target));
}
#endif /* if DNS_RDATASET_FIXED */
};
-#define peek_uint16(buffer) \
- ({ ((uint16_t) * (buffer) << 8) | *((buffer) + 1); })
+#define peek_uint16(buffer) ({ ((uint16_t)*(buffer) << 8) | *((buffer) + 1); })
#define get_uint16(buffer) \
({ \
uint16_t __ret = peek_uint16(buffer); \
void
isc_thread_setname(isc_thread_t thread, const char *name);
-#define isc_thread_self (uintptr_t) pthread_self
+#define isc_thread_self (uintptr_t)pthread_self
ISC_LANG_ENDDECLS
#if defined(__linux__)
#include <syscall.h>
-#define gettid() (uint64_t) syscall(SYS_gettid)
+#define gettid() (uint64_t)syscall(SYS_gettid)
#elif defined(__FreeBSD__)
#include <pthread_np.h>
#define gettid() (uint64_t)(pthread_getthreadid_np())
void *map = NULL;
isc_mem_create(&mem);
- map = fun->new (mem);
+ map = fun->new(mem);
size_t nitems = lines / (nthreads + 1);