diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-10 15:13:50 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-10 15:13:50 +0200 |
commit | dd8b7a5debd702ba05a7cc022db4fd5d715781ea (patch) | |
tree | 11f7dea762f7a16d62a9d2444f0af996701a2908 | |
parent | 103afea31f25912417e4605020a4db475d261a48 (diff) | |
parent | a303971cf0253df781bf088739c73d20a624f86b (diff) |
Merge branch 'master' of git+ssh://git.gnunet.org/gnunetv0.20.0
-rw-r--r-- | src/include/gnunet_pq_lib.h | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index 5fde78c24..7c6deb09d 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h @@ -132,13 +132,13 @@ GNUNET_PQ_cleanup_query_params_closures ( * End of query parameter specification. */ #define GNUNET_PQ_query_param_end \ - { \ - .conv = NULL, \ - .conv_cls = NULL, \ - .data = NULL, \ - .size = 0, \ - .num_params = 0 \ - } + { \ + .conv = NULL, \ + .conv_cls = NULL, \ + .data = NULL, \ + .size = 0, \ + .num_params = 0 \ + } /** @@ -317,10 +317,10 @@ GNUNET_PQ_query_param_array_bytes_same_size ( * @return query parameter to use */ #define GNUNET_PQ_query_param_array_auto_from_type(num, elements, db) \ - GNUNET_PQ_query_param_array_bytes_same_size ((num), \ - (elements), \ - sizeof(*(elements)), \ - (db)) + GNUNET_PQ_query_param_array_bytes_same_size ((num), \ + (elements), \ + sizeof(*(elements)), \ + (db)) /** * Generate query parameter for an array of pointers to buffers @a elements, @@ -350,10 +350,10 @@ GNUNET_PQ_query_param_array_ptrs_bytes_same_size ( * @return query parameter to use */ #define GNUNET_PQ_query_param_array_ptrs_auto_from_type(num, elements, db) \ - GNUNET_PQ_query_param_array_ptrs_bytes_same_size ((num), \ - (elements), \ - sizeof(*(elements[0])), \ - (db)) + GNUNET_PQ_query_param_array_ptrs_bytes_same_size ((num), \ + (const void **) (elements), \ + sizeof(*(elements[0])), \ + (db)) /** @@ -394,7 +394,7 @@ GNUNET_PQ_query_param_array_ptrs_string ( * @return query parameter to use */ #define GNUNET_PQ_query_param_auto_from_type(x) \ - GNUNET_PQ_query_param_fixed_size ((x), sizeof(*(x))) + GNUNET_PQ_query_param_fixed_size ((x), sizeof(*(x))) /** * Generate query parameter for an array of absolute time stamps (continuous) @@ -685,17 +685,17 @@ struct GNUNET_PQ_ResultSpec * @return array last entry for the result specification to use */ #define GNUNET_PQ_result_spec_end \ - { \ - .conv = NULL, \ - .cleaner = NULL, \ - .cls = NULL, \ - .dst = NULL, \ - .dst_size = 0, \ - .fname = NULL, \ - .result_size = NULL, \ - .is_nullable = false, \ - .is_null = NULL \ - } + { \ + .conv = NULL, \ + .cleaner = NULL, \ + .cls = NULL, \ + .dst = NULL, \ + .dst_size = 0, \ + .fname = NULL, \ + .result_size = NULL, \ + .is_nullable = false, \ + .is_null = NULL \ + } /** @@ -748,7 +748,7 @@ GNUNET_PQ_result_spec_fixed_size (const char *name, * @return array entry for the result specification to use */ #define GNUNET_PQ_result_spec_auto_from_type(name, dst) \ - GNUNET_PQ_result_spec_fixed_size (name, (dst), sizeof(*(dst))) + GNUNET_PQ_result_spec_fixed_size (name, (dst), sizeof(*(dst))) /** @@ -1056,12 +1056,12 @@ GNUNET_PQ_result_spec_array_fixed_size ( * @return array entry for the result specification to use */ #define GNUNET_PQ_result_spec_auto_array_from_type(db, name, num, dst) \ - GNUNET_PQ_result_spec_array_fixed_size ( \ - (db), \ - (name), \ - sizeof(*(dst)), \ - (num), \ - (void *) &(dst)) + GNUNET_PQ_result_spec_array_fixed_size ( \ + (db), \ + (name), \ + sizeof(*(dst)), \ + (num), \ + (void *) &(dst)) /** @@ -1253,9 +1253,9 @@ struct GNUNET_PQ_PreparedStatement * Terminator for prepared statement list. */ #define GNUNET_PQ_PREPARED_STATEMENT_END \ - { \ - NULL, NULL \ - } + { \ + NULL, NULL \ + } /** @@ -1325,9 +1325,9 @@ struct GNUNET_PQ_ExecuteStatement * Terminator for executable statement list. */ #define GNUNET_PQ_EXECUTE_STATEMENT_END \ - { \ - NULL, GNUNET_SYSERR \ - } + { \ + NULL, GNUNET_SYSERR \ + } /** |