aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_util_wallet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_util_wallet.h')
-rw-r--r--src/include/taler_util_wallet.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/include/taler_util_wallet.h b/src/include/taler_util_wallet.h
index dd08702db..249ee4571 100644
--- a/src/include/taler_util_wallet.h
+++ b/src/include/taler_util_wallet.h
@@ -55,9 +55,9 @@ extern "C"
#define TALER_assert_as(EXP, reason) \
do { \
if (EXP) break; \
- TALER_LOG_ERROR("%s at %s:%d\n", reason, __FILE__, __LINE__); \
- abort(); \
- } while(0)
+ TALER_LOG_ERROR ("%s at %s:%d\n", reason, __FILE__, __LINE__); \
+ abort (); \
+ } while (0)
/**
@@ -65,11 +65,17 @@ extern "C"
* a failure of the command 'cmd' with the message given
* by gcry_strerror(rc).
*/
-#define TALER_LOG_GCRY_ERROR(cmd, rc) do { TALER_LOG_ERROR("`%s' failed at %s:%d with error: %s\n", cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while(0)
+#define TALER_LOG_GCRY_ERROR(cmd, rc) do { TALER_LOG_ERROR ( \
+ "`%s' failed at %s:%d with error: %s\n", \
+ cmd, __FILE__, __LINE__, \
+ gcry_strerror (rc)); } while (0)
#define TALER_gcry_ok(cmd) \
- do {int rc; rc = cmd; if (!rc) break; TALER_LOG_ERROR("A Gcrypt call failed at %s:%d with error: %s\n", __FILE__, __LINE__, gcry_strerror(rc)); abort(); } while (0)
+ do {int rc; rc = cmd; if (! rc) break; \
+ TALER_LOG_ERROR ("A Gcrypt call failed at %s:%d with error: %s\n", \
+ __FILE__, \
+ __LINE__, gcry_strerror (rc)); abort (); } while (0)
/**