aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-25 16:18:24 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-25 16:18:24 +0200
commiteb559970846f0fa27f1f25c482cd07210a56f4b1 (patch)
tree8526637825e520e1420b17515934ced794a33c01 /src/include/taler_util.h
parent3742239c13001433eeade439a0e0490f07351c43 (diff)
re-format code
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 479a45754..310c88955 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -51,9 +51,9 @@
#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)
/**
@@ -61,11 +61,17 @@
* 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)
/**