aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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,
188 return GNUNET_OK; 188 return GNUNET_OK;
189} 189}
190 190
191#define RETONERR(x) do { int v = x; if (GNUNET_OK != v) return v; } while (0)
192 191
192/**
193 * Check a single vector.
194 *
195 * @param operation operator of the vector
196 * @param vec the vector, a JSON object.
197 *
198 * @returns GNUNET_OK if the vector is okay
199 */
193static int 200static int
194checkvec (const char *operation, 201checkvec (const char *operation,
195 json_t *vec) 202 json_t *vec)