exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 42ef95d002637150bbb294d2e4e69504b2b7bb7c
parent fdd8d602ba755c5a3c98e01ac890b969567d5374
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 19 Jan 2020 15:38:44 +0100

duplicate code elimination

Diffstat:
Msrc/testing/testing_api_loop.c | 15+--------------
1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c @@ -124,20 +124,7 @@ TALER_TESTING_run_with_fakebank (struct TALER_TESTING_Interpreter *is, struct TALER_TESTING_Command *commands, const char *bank_url) { - const char *port; - long pnum; - - port = strrchr (bank_url, - (unsigned char) ':'); - if (NULL == port) - pnum = 80; - else - pnum = strtol (port + 1, NULL, 10); - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Starting Fakebank on port %u (%s)\n", - (unsigned int) pnum, - bank_url); - is->fakebank = TALER_FAKEBANK_start ((uint16_t) pnum); + is->fakebank = TALER_TESTING_run_fakebank (bank_url); if (NULL == is->fakebank) { GNUNET_break (0);