From 55f16bad7659b363fbea23a2c7f622e98fa35d4a Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Apr 2020 23:28:49 +0200 Subject: ta: remove a macro indirection No idea what purpose this was supposed to serve. --- ta/ta_talloc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ta/ta_talloc.h') diff --git a/ta/ta_talloc.h b/ta/ta_talloc.h index 259496f65b..0f5c3bccb5 100644 --- a/ta/ta_talloc.h +++ b/ta/ta_talloc.h @@ -79,8 +79,6 @@ char *ta_talloc_asprintf_append_buffer(char *s, const char *fmt, ...) TA_PRF(2, #define TA_FREEP(pctx) do {talloc_free(*(pctx)); *(pctx) = NULL;} while(0) -#define TA_EXPAND_ARGS(...) __VA_ARGS__ - // Return number of allocated entries in typed array p[]. #define MP_TALLOC_AVAIL(p) (talloc_get_size(p) / sizeof((p)[0])) @@ -105,7 +103,7 @@ char *ta_talloc_asprintf_append_buffer(char *s, const char *fmt, ...) TA_PRF(2, #define MP_TARRAY_APPEND(ctx, p, idxvar, ...) \ do { \ MP_TARRAY_GROW(ctx, p, idxvar); \ - (p)[(idxvar)] = (TA_EXPAND_ARGS(__VA_ARGS__));\ + (p)[(idxvar)] = (__VA_ARGS__); \ (idxvar)++; \ } while (0) @@ -120,7 +118,7 @@ char *ta_talloc_asprintf_append_buffer(char *s, const char *fmt, ...) TA_PRF(2, memmove((p) + at_ + 1, (p) + at_, \ ((idxvar) - at_) * sizeof((p)[0])); \ (idxvar)++; \ - (p)[at_] = (TA_EXPAND_ARGS(__VA_ARGS__)); \ + (p)[at_] = (__VA_ARGS__); \ } while (0) // Given an array p with count idxvar, insert c elements at p[at], so that -- cgit v1.2.3