aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bank-lib/test_bank_api.c2
-rw-r--r--src/bank-lib/test_bank_api_with_fakebank.c2
-rw-r--r--src/bank-lib/test_bank_interpreter.c8
-rw-r--r--src/bank-lib/test_bank_interpreter.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c
index 6e8f2005b..deba9fd53 100644
--- a/src/bank-lib/test_bank_api.c
+++ b/src/bank-lib/test_bank_api.c
@@ -51,7 +51,7 @@ run (void *cls)
};
TBI_run_interpreter (resultp,
- 0 /* we use the "real" taler bank */,
+ GNUNET_NO /* we use the "real" taler bank */,
commands);
}
diff --git a/src/bank-lib/test_bank_api_with_fakebank.c b/src/bank-lib/test_bank_api_with_fakebank.c
index 102c616a1..fccdf6645 100644
--- a/src/bank-lib/test_bank_api_with_fakebank.c
+++ b/src/bank-lib/test_bank_api_with_fakebank.c
@@ -51,7 +51,7 @@ run (void *cls)
};
TBI_run_interpreter (resultp,
- 8080,
+ GNUNET_YES,
commands);
}
diff --git a/src/bank-lib/test_bank_interpreter.c b/src/bank-lib/test_bank_interpreter.c
index 3247777b3..7fff8be2f 100644
--- a/src/bank-lib/test_bank_interpreter.c
+++ b/src/bank-lib/test_bank_interpreter.c
@@ -330,19 +330,19 @@ do_shutdown (void *cls)
* Entry point to the interpeter.
*
* @param resultp where to store the final result
- * @param bank_port on which port to launch the bank, 0 for none
+ * @param run_bank #GNUNET_YES to run the fakebank
* @param commands list of commands to run
*/
void
TBI_run_interpreter (int *resultp,
- uint16_t bank_port,
+ int run_bank,
struct TBI_Command *commands)
{
struct InterpreterState *is;
is = GNUNET_new (struct InterpreterState);
- if (0 != bank_port)
- is->fakebank = FAKEBANK_start (bank_port);
+ if (GNUNET_YES == run_bank)
+ is->fakebank = FAKEBANK_start (8081);
is->resultp = resultp;
is->commands = commands;
is->ctx = GNUNET_CURL_init (&GNUNET_CURL_gnunet_scheduler_reschedule,
diff --git a/src/bank-lib/test_bank_interpreter.h b/src/bank-lib/test_bank_interpreter.h
index 35873840a..f54986973 100644
--- a/src/bank-lib/test_bank_interpreter.h
+++ b/src/bank-lib/test_bank_interpreter.h
@@ -116,12 +116,12 @@ struct TBI_Command
* Entry point to the interpeter.
*
* @param resultp where to store the final result
- * @param bank_port on which port to launch the bank, 0 for none
+ * @param run_bank #GNUNET_YES to run the fakebank
* @param commands list of commands to run
*/
void
TBI_run_interpreter (int *resultp,
- uint16_t bank_port,
+ int run_bank,
struct TBI_Command *commands);
#endif