[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 05/07: use plain uint32_t
From: |
gnunet |
Subject: |
[taler-exchange] 05/07: use plain uint32_t |
Date: |
Wed, 02 Mar 2022 19:09:55 +0100 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository exchange.
commit 7f30609ff0773873df9274bf4a491dd00e623577
Author: Marco Boss <bossm8@bfh.ch>
AuthorDate: Wed Mar 2 17:22:43 2022 +0100
use plain uint32_t
---
src/exchange-tools/taler-exchange-dbinit.c | 2 +-
src/exchangedb/plugin_exchangedb_postgres.c | 4 ++--
src/include/taler_exchangedb_plugin.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/exchange-tools/taler-exchange-dbinit.c
b/src/exchange-tools/taler-exchange-dbinit.c
index 69b9d1a1..9ec31afc 100644
--- a/src/exchange-tools/taler-exchange-dbinit.c
+++ b/src/exchange-tools/taler-exchange-dbinit.c
@@ -98,7 +98,7 @@ run (void *cls,
if (1 <
num_partitions)
{
- if (GNUNET_OK != plugin->setup_partitions (plugin->cls, &num_partitions))
+ if (GNUNET_OK != plugin->setup_partitions (plugin->cls, num_partitions))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not setup partitions. Dropping default ones again\n");
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c
b/src/exchangedb/plugin_exchangedb_postgres.c
index 517792b9..b397728b 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -207,13 +207,13 @@ postgres_create_tables (void *cls)
*/
static enum GNUNET_GenericReturnValue
postgres_setup_partitions (void *cls,
- const uint32_t *num)
+ const uint32_t num)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_Context *conn;
enum GNUNET_GenericReturnValue ret;
struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint32 (num),
+ GNUNET_PQ_query_param_uint32 (&num),
GNUNET_PQ_query_param_end
};
struct GNUNET_PQ_PreparedStatement ps[] = {
diff --git a/src/include/taler_exchangedb_plugin.h
b/src/include/taler_exchangedb_plugin.h
index a3c2e2ca..9841d45d 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -2242,7 +2242,7 @@ struct TALER_EXCHANGEDB_Plugin
*/
enum GNUNET_GenericReturnValue
(*setup_partitions)(void *cls,
- const uint32_t *num);
+ const uint32_t num);
/**
* Start a transaction.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] branch master updated (10d7d93a -> 57e3864c), gnunet, 2022/03/02
- [taler-exchange] 02/07: clearer doc, gnunet, 2022/03/02
- [taler-exchange] 03/07: fix, gnunet, 2022/03/02
- [taler-exchange] 06/07: fix num partitions, gnunet, 2022/03/02
- [taler-exchange] 04/07: fix, gnunet, 2022/03/02
- [taler-exchange] 05/07: use plain uint32_t,
gnunet <=
- [taler-exchange] 01/07: include partitioning logic in dbinit, gnunet, 2022/03/02
- [taler-exchange] 07/07: Include partitioning in dbinit, gnunet, 2022/03/02