summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2020-12-04 17:51:15 +0100
committerFlorian Dold <florian@dold.me>2020-12-04 17:51:15 +0100
commit2c5857012467c1420270545472be72d8fa9a5563 (patch)
tree03cdb4f2d56e61f79caf8195ddc1796cfd172fa7 /src
parent1346641a163ed02540b6931fd4ad31ba6af4d64d (diff)
-remove unused macro / add comment
Diffstat (limited to 'src')
-rw-r--r--src/util/gnunet-crypto-tvg.c9
1 files changed, 8 insertions, 1 deletions
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)