merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit b2d26e8d0e5fcd048eeb2b8ae5bb026fa2fec8dc
parent 4533d2dedd5eae9ac8233b4117fa8cbdfee44312
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu, 29 Jan 2026 16:21:43 +0900

fix bad use of ntohs, should be htons (not that it matters, but unclean)

Diffstat:
Msrc/backend/taler-merchant-depositcheck.c | 4++--
Msrc/backend/taler-merchant-donaukeyupdate.c | 8++++----
Msrc/backend/taler-merchant-exchangekeyupdate.c | 8++++----
Msrc/backend/taler-merchant-httpd.c | 8++++----
Msrc/backend/taler-merchant-httpd_exchanges.c | 8++++----
5 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/backend/taler-merchant-depositcheck.c b/src/backend/taler-merchant-depositcheck.c @@ -1103,8 +1103,8 @@ run (void *cls, } { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof (es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_EXCHANGE_KEYS) + .size = htons (sizeof (es)), + .type = htons (TALER_DBEVENT_MERCHANT_EXCHANGE_KEYS) }; keys_eh = db_plugin->event_listen (db_plugin->cls, diff --git a/src/backend/taler-merchant-donaukeyupdate.c b/src/backend/taler-merchant-donaukeyupdate.c @@ -1042,8 +1042,8 @@ run (void *cls, } { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof(es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_DONAU_KEYS) + .size = htons (sizeof(es)), + .type = htons (TALER_DBEVENT_MERCHANT_DONAU_KEYS) }; eh = db_plugin->event_listen (db_plugin->cls, @@ -1054,8 +1054,8 @@ run (void *cls, } { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof(es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_DONAU_CHARITY_ID) + .size = htons (sizeof(es)), + .type = htons (TALER_DBEVENT_MERCHANT_DONAU_CHARITY_ID) }; eh_charity = db_plugin->event_listen ( diff --git a/src/backend/taler-merchant-exchangekeyupdate.c b/src/backend/taler-merchant-exchangekeyupdate.c @@ -430,8 +430,8 @@ insert_keys_data (const struct TALER_EXCHANGE_Keys *keys, { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof (es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_EXCHANGE_KEYS) + .size = htons (sizeof (es)), + .type = htons (TALER_DBEVENT_MERCHANT_EXCHANGE_KEYS) }; GNUNET_log (GNUNET_ERROR_TYPE_INFO, @@ -1010,8 +1010,8 @@ run (void *cls, } { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof (es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_EXCHANGE_FORCE_KEYS) + .size = htons (sizeof (es)), + .type = htons (TALER_DBEVENT_MERCHANT_EXCHANGE_FORCE_KEYS) }; eh = db_plugin->event_listen (db_plugin->cls, diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c @@ -928,8 +928,8 @@ void TMH_reload_instances (const char *id) { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof (es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_INSTANCE_SETTINGS) + .size = htons (sizeof (es)), + .type = htons (TALER_DBEVENT_MERCHANT_INSTANCE_SETTINGS) }; GNUNET_log (GNUNET_ERROR_TYPE_INFO, @@ -1447,8 +1447,8 @@ run (void *cls, { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof (es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_INSTANCE_SETTINGS) + .size = htons (sizeof (es)), + .type = htons (TALER_DBEVENT_MERCHANT_INSTANCE_SETTINGS) }; instance_eh = TMH_db->event_listen (TMH_db->cls, diff --git a/src/backend/taler-merchant-httpd_exchanges.c b/src/backend/taler-merchant-httpd_exchanges.c @@ -417,8 +417,8 @@ retry_exchange (void *cls) { struct TMH_Exchange *exchange = cls; struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof (es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_EXCHANGE_FORCE_KEYS) + .size = htons (sizeof (es)), + .type = htons (TALER_DBEVENT_MERCHANT_EXCHANGE_FORCE_KEYS) }; exchange->retry_task = NULL; @@ -1208,8 +1208,8 @@ TMH_EXCHANGES_init (const struct GNUNET_CONFIGURATION_Handle *cfg) /* get exchanges from the merchant configuration and try to connect to them */ { struct GNUNET_DB_EventHeaderP es = { - .size = ntohs (sizeof (es)), - .type = ntohs (TALER_DBEVENT_MERCHANT_EXCHANGE_KEYS) + .size = htons (sizeof (es)), + .type = htons (TALER_DBEVENT_MERCHANT_EXCHANGE_KEYS) }; GNUNET_assert (NULL == keys_eh);