gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: duplicate code elimination


From: gnunet
Subject: [taler-exchange] branch master updated: duplicate code elimination
Date: Sun, 19 Jan 2020 15:38:46 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 42ef95d0 duplicate code elimination
42ef95d0 is described below

commit 42ef95d002637150bbb294d2e4e69504b2b7bb7c
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jan 19 15:38:44 2020 +0100

    duplicate code elimination
---
 src/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
index a7a5a23a..61b95c2e 100644
--- 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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]