1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-01-27 00:18:12 +03:00

tidy-up: parenthesis in macros (OS400)

Follow-up to d97d8e3198 #1773

Closes #1774
This commit is contained in:
Viktor Szakats
2025-12-26 21:24:17 +01:00
parent d97d8e3198
commit fdbc32b0d1

View File

@@ -57,10 +57,9 @@
#define OFFSET_OF(t, f) ((size_t) ((char *) &((t *) 0)->f - (char *) 0))
#define ALLOC(s, sz) ((s)? LIBSSH2_ALLOC((s), (sz)): malloc(sz))
#define REALLOC(s, p, sz) ((s)? LIBSSH2_REALLOC((s), (p), (sz)): \
realloc((p), (sz)))
#define FREE(s, p) ((s)? LIBSSH2_FREE((s), (p)): free(p))
#define ALLOC(s, sz) ((s) ? LIBSSH2_ALLOC(s, sz) : malloc(sz))
#define REALLOC(s, p, sz) ((s) ? LIBSSH2_REALLOC(s, p, sz) : realloc(p, sz))
#define FREE(s, p) ((s) ? LIBSSH2_FREE(s, p) : free(p))
struct _libssh2_string_cache {
libssh2_string_cache * next;