From 2c5857012467c1420270545472be72d8fa9a5563 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 4 Dec 2020 17:51:15 +0100 Subject: -remove unused macro / add comment --- src/util/gnunet-crypto-tvg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/gnunet-crypto-tvg.c b/src/util/gnunet-crypto-tvg.c index 1e9cc3174..8949f427c 100644 --- a/src/util/gnunet-crypto-tvg.c +++ b/src/util/gnunet-crypto-tvg.c @@ -188,8 +188,15 @@ expect_data_dynamic (json_t *vec, return GNUNET_OK; } -#define RETONERR(x) do { int v = x; if (GNUNET_OK != v) return v; } while (0) +/** + * Check a single vector. + * + * @param operation operator of the vector + * @param vec the vector, a JSON object. + * + * @returns GNUNET_OK if the vector is okay + */ static int checkvec (const char *operation, json_t *vec) -- cgit v1.2.3