summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)