diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-07-30 13:21:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-07-30 13:22:35 +0200 |
commit | e2e4585d9074fe0f62f20a63deac93a298e2d33d (patch) | |
tree | 6666c9fbec6b60d9e5c7edae0b821a936bc14120 | |
parent | 53c90532c1bdb69ac2eac6a6f20581916014a91f (diff) | |
download | gnunet-e2e4585d9074fe0f62f20a63deac93a298e2d33d.tar.gz gnunet-e2e4585d9074fe0f62f20a63deac93a298e2d33d.zip |
Slightly nicer API.
NEWS: -
-rw-r--r-- | src/include/gnunet_pq_lib.h | 5 | ||||
-rw-r--r-- | src/pq/pq_query_helper.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index 3408362a6..09340377d 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h | |||
@@ -382,8 +382,9 @@ GNUNET_PQ_query_param_array_string ( | |||
382 | struct GNUNET_PQ_QueryParam | 382 | struct GNUNET_PQ_QueryParam |
383 | GNUNET_PQ_query_param_array_ptrs_string ( | 383 | GNUNET_PQ_query_param_array_ptrs_string ( |
384 | unsigned int num, | 384 | unsigned int num, |
385 | const char *elements[], | 385 | const char *elements[static num], |
386 | struct GNUNET_PQ_Context *db); | 386 | const struct GNUNET_PQ_Context *db); |
387 | |||
387 | 388 | ||
388 | /** | 389 | /** |
389 | * Generate fixed-size query parameter with size determined | 390 | * Generate fixed-size query parameter with size determined |
diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c index 71421345f..cbb9c5bc2 100644 --- a/src/pq/pq_query_helper.c +++ b/src/pq/pq_query_helper.c | |||
@@ -1136,8 +1136,8 @@ GNUNET_PQ_query_param_array_string ( | |||
1136 | struct GNUNET_PQ_QueryParam | 1136 | struct GNUNET_PQ_QueryParam |
1137 | GNUNET_PQ_query_param_array_ptrs_string ( | 1137 | GNUNET_PQ_query_param_array_ptrs_string ( |
1138 | unsigned int num, | 1138 | unsigned int num, |
1139 | const char *elements[], | 1139 | const char *elements[static num], |
1140 | struct GNUNET_PQ_Context *db) | 1140 | const struct GNUNET_PQ_Context *db) |
1141 | { | 1141 | { |
1142 | Oid oid; | 1142 | Oid oid; |
1143 | GNUNET_assert (GNUNET_OK == | 1143 | GNUNET_assert (GNUNET_OK == |