donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 2484c43462d40c7b9a5c7763da4d10c3d1430776
parent 01bf0901ff4e8e97e91d253b2cd91f8c0f576728
Author: Pius Loosli <loosp2@bfh.ch>
Date:   Tue,  9 Jan 2024 00:08:22 +0100

[donaudb] fix warnings in lookup_charity

Diffstat:
Msrc/donaudb/pg_lookup_charity.c | 6+++---
Msrc/donaudb/pg_lookup_charity.h | 4++--
Msrc/include/donaudb_plugin.h | 38+++++++++++++++++++-------------------
3 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/src/donaudb/pg_lookup_charity.c b/src/donaudb/pg_lookup_charity.c @@ -28,12 +28,12 @@ enum GNUNET_DB_QueryStatus DH_PG_lookup_charity ( void *cls, - unsigned long long charity_id, - const struct DONAUDB_CharityMetaData *meta) + unsigned long charity_id, + struct DONAUDB_CharityMetaData *meta) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { - GNUNET_PQ_query_param_uint64 (charity_id), + GNUNET_PQ_query_param_uint64 (&charity_id), GNUNET_PQ_query_param_end }; struct GNUNET_PQ_ResultSpec rs[] = { diff --git a/src/donaudb/pg_lookup_charity.h b/src/donaudb/pg_lookup_charity.h @@ -34,7 +34,7 @@ enum GNUNET_DB_QueryStatus DH_PG_lookup_charity ( void *cls, - unsigned long long charity_id, - const struct DONAUDB_CharityMetaData *meta); + unsigned long charity_id, + struct DONAUDB_CharityMetaData *meta); #endif diff --git a/src/include/donaudb_plugin.h b/src/include/donaudb_plugin.h @@ -82,17 +82,17 @@ struct DONAUDB_CharityMetaData /** * Charity public key */ - const struct DONAU_CharityPublicKeyP *charity_pub; + struct DONAU_CharityPublicKeyP *charity_pub; /** * Charity name */ - const char *charity_name; + char *charity_name; /** * Charity url */ - const char *charity_url; + char *charity_url; /** * Charity yearly donation limit @@ -195,7 +195,7 @@ struct DONAUDB_Plugin * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure */ enum GNUNET_GenericReturnValue - (*drop_tables)(void *cls); + (*drop_tables)(void *cls); /** * Create the necessary tables if they are not present @@ -208,9 +208,9 @@ struct DONAUDB_Plugin * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure */ enum GNUNET_GenericReturnValue - (*create_tables)(void *cls, - bool support_partitions, - uint32_t num_partitions); + (*create_tables)(void *cls, + bool support_partitions, + uint32_t num_partitions); /** @@ -222,8 +222,8 @@ struct DONAUDB_Plugin * @return #GNUNET_OK on success */ enum GNUNET_GenericReturnValue - (*start)(void *cls, - const char *name); + (*start)(void *cls, + const char *name); /** @@ -235,8 +235,8 @@ struct DONAUDB_Plugin * @return #GNUNET_OK on success */ enum GNUNET_GenericReturnValue - (*start_read_committed)(void *cls, - const char *name); + (*start_read_committed)(void *cls, + const char *name); /** * Start a READ ONLY serializable transaction. @@ -247,8 +247,8 @@ struct DONAUDB_Plugin * @return #GNUNET_OK on success */ enum GNUNET_GenericReturnValue - (*start_read_only)(void *cls, - const char *name); + (*start_read_only)(void *cls, + const char *name); /** @@ -258,7 +258,7 @@ struct DONAUDB_Plugin * @return transaction status */ enum GNUNET_DB_QueryStatus - (*commit)(void *cls); + (*commit)(void *cls); /** @@ -272,7 +272,7 @@ struct DONAUDB_Plugin * #GNUNET_SYSERR on hard errors */ enum GNUNET_GenericReturnValue - (*preflight)(void *cls); + (*preflight)(void *cls); /** @@ -293,7 +293,7 @@ struct DONAUDB_Plugin * #GNUNET_SYSERR on DB errors */ enum GNUNET_GenericReturnValue - (*gc)(void *cls); + (*gc)(void *cls); /** @@ -349,7 +349,7 @@ struct DONAUDB_Plugin * @return database transaction status */ enum GNUNET_DB_QueryStatus - (*lookup_charity)( + (*lookup_charity)( void *cls, unsigned long long charity_id, const char *charity_url, @@ -364,7 +364,7 @@ struct DONAUDB_Plugin * @return database transaction status */ enum GNUNET_DB_QueryStatus - (*get_charities)( + (*get_charities)( void *cls, DONAUDB_GetCharitiesCallback cb, void *cb_cls); @@ -378,7 +378,7 @@ struct DONAUDB_Plugin * @return database transaction status */ enum GNUNET_DB_QueryStatus - (*insert_charity)( + (*insert_charity)( void *cls, const char *charity_name, const char *charity_url);