[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: 'enum' instead of s
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: 'enum' instead of several same-typed #define's. |
Date: |
Tue, 12 Jun 2018 12:07:10 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 6f7d599 'enum' instead of several same-typed #define's.
6f7d599 is described below
commit 6f7d5992698d57b4f3b3c079b4392b6dbc5c1b1b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jun 12 12:06:14 2018 +0200
'enum' instead of several same-typed #define's.
---
.../taler-merchant-generate-payments_new.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c
b/src/merchant-tools/taler-merchant-generate-payments_new.c
index b910d81..db27b21 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -39,12 +39,15 @@
#include "taler_merchant_testing_lib.h"
/* Error codes. */
-#define MISSING_MERCHANT_URL 2
-#define FAILED_TO_LAUNCH_MERCHANT 3
-#define MISSING_BANK_URL 4
-#define FAILED_TO_LAUNCH_BANK 5
-#define BAD_CLI_ARG 6
-#define BAD_CONFIG_FILE 7
+enum PaymentGeneratorError {
+
+ MISSING_MERCHANT_URL = 2,
+ FAILED_TO_LAUNCH_MERCHANT,
+ MISSING_BANK_URL,
+ FAILED_TO_LAUNCH_BANK,
+ BAD_CLI_ARG,
+ BAD_CONFIG_FILE
+};
/* Hard-coded params. Note, the bank is expected to
* have the Tor user with account number 3 and password 'x'.
@@ -483,7 +486,7 @@ terminate_process (struct GNUNET_OS_Process *process)
*
* @param argc number of arguments from the command line
* @param argv command line arguments
- * @return 0 ok, 1 on error
+ * @return 0 ok, or `enum PaymentGeneratorError` on error
*/
int
main (int argc,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: 'enum' instead of several same-typed #define's.,
gnunet <=