aboutsummaryrefslogtreecommitdiff
path: root/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wire-plugins/test_wire_plugin_transactions_taler-bank.c')
-rw-r--r--src/wire-plugins/test_wire_plugin_transactions_taler-bank.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c b/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c
index 2cda49a05..fa0db5b41 100644
--- a/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c
+++ b/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c
@@ -107,6 +107,7 @@ static struct TALER_WireTransferIdentifierRawP wtid;
107static void 107static void
108do_shutdown (void *cls) 108do_shutdown (void *cls)
109{ 109{
110 (void) cls;
110 TALER_FAKEBANK_stop (fb); 111 TALER_FAKEBANK_stop (fb);
111 fb = NULL; 112 fb = NULL;
112 if (NULL != eh) 113 if (NULL != eh)
@@ -186,11 +187,11 @@ history_result_cb
186 uint64_t serialh; 187 uint64_t serialh;
187 struct TALER_Amount amount; 188 struct TALER_Amount amount;
188 189
189 hh = NULL;
190 if ( (TALER_BANK_DIRECTION_NONE == dir) && 190 if ( (TALER_BANK_DIRECTION_NONE == dir) &&
191 (GNUNET_OK == global_ret) ) 191 (GNUNET_OK == global_ret) )
192 { 192 {
193 GNUNET_SCHEDULER_shutdown (); 193 GNUNET_SCHEDULER_shutdown ();
194 hh = NULL;
194 return GNUNET_OK; 195 return GNUNET_OK;
195 } 196 }
196 if (sizeof (uint64_t) != row_off_size) 197 if (sizeof (uint64_t) != row_off_size)
@@ -251,6 +252,7 @@ confirmation_cb (void *cls,
251 const char *emsg) 252 const char *emsg)
252{ 253{
253 uint64_t tmp; 254 uint64_t tmp;
255
254 eh = NULL; 256 eh = NULL;
255 if (GNUNET_OK != success) 257 if (GNUNET_OK != success)
256 { 258 {
@@ -259,13 +261,10 @@ confirmation_cb (void *cls,
259 GNUNET_SCHEDULER_shutdown (); 261 GNUNET_SCHEDULER_shutdown ();
260 return; 262 return;
261 } 263 }
262
263 memcpy (&tmp, 264 memcpy (&tmp,
264 row_id, 265 row_id,
265 row_id_size); 266 row_id_size);
266
267 serial_target = GNUNET_ntohll (tmp); 267 serial_target = GNUNET_ntohll (tmp);
268
269 hh = plugin->get_history (plugin->cls, 268 hh = plugin->get_history (plugin->cls,
270 my_account, 269 my_account,
271 TALER_BANK_DIRECTION_BOTH, 270 TALER_BANK_DIRECTION_BOTH,