diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-17 16:58:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-17 16:58:50 +0100 |
commit | 3d4baa996936b55b595d4f2f619ce47472a21d10 (patch) | |
tree | d36b08d9e0bd41d46fdcf1ebeb1039af046761c2 /src/bank-lib/fakebank.c | |
parent | 8e0f06c86bdc6880bc24334e65b7920c8310ecdd (diff) | |
download | exchange-3d4baa996936b55b595d4f2f619ce47472a21d10.tar.xz |
-code cleanup
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r-- | src/bank-lib/fakebank.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index 34b87be57..b3d3250a1 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -1484,6 +1484,8 @@ TALER_FAKEBANK_stop (struct TALER_FAKEBANK_Handle *h) while (NULL != (lp = GNUNET_CONTAINER_heap_remove_root (h->lp_heap))) lp_trigger (lp, h); + GNUNET_assert (0 == + pthread_mutex_unlock (&h->big_lock)); GNUNET_break (sizeof (val) == #ifdef __linux__ write (h->lp_event, @@ -1492,8 +1494,6 @@ TALER_FAKEBANK_stop (struct TALER_FAKEBANK_Handle *h) #endif &val, sizeof (val))); - GNUNET_assert (0 == - pthread_mutex_unlock (&h->big_lock)); GNUNET_break (0 == pthread_join (h->lp_thread, &ret)); @@ -3012,7 +3012,7 @@ handle_bank_integration (struct TALER_FAKEBANK_Handle *h, char dummy; if (1 != sscanf (lp_s, - "%lld%c", + "%llu%c", &d, &dummy)) { @@ -3427,6 +3427,7 @@ post_testing_register (struct TALER_FAKEBANK_Handle *h, acc = lookup_account (h, username, username); + GNUNET_assert (NULL != acc); acc->password = GNUNET_strdup (password); acc->balance = h->signup_bonus; /* magic money creation! */ } |