aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-08-29 19:39:00 +0300
committerJoursoir <chat@joursoir.net>2022-08-29 20:34:25 +0300
commit162b70fb7e39293025ee8eaf58c50fa4ba30456c (patch)
treee8a29f14b73706b38dc4d7655c6bda071592fafe
parentb7199e1c0430739b31444df0913e73b2db4d19cf (diff)
downloadlock-password-162b70fb7e39293025ee8eaf58c50fa4ba30456c.tar.gz
lock-password-162b70fb7e39293025ee8eaf58c50fa4ba30456c.tar.bz2
lock-password-162b70fb7e39293025ee8eaf58c50fa4ba30456c.zip
r-gpgme: drop macro for error handling
-rw-r--r--src/r-gpgme.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/r-gpgme.c b/src/r-gpgme.c
index cfe6882..eed2db1 100644
--- a/src/r-gpgme.c
+++ b/src/r-gpgme.c
@@ -27,27 +27,6 @@
#include "r-gpgme.h"
#include "output.h"
-#ifdef DEBUG
- #define ret_if_err(ret, err) \
- do { \
- if(err != GPG_ERR_NO_ERROR) { \
- fprintf(stderr, "%s:%d: %s: %s\n", __FILE__, \
- __LINE__, gpgme_strsource(err), \
- gpgme_strerror(err)); \
- return ret; \
- } \
- } while(0)
-#else
- #define ret_if_err(ret, err) \
- do { \
- if(err != GPG_ERR_NO_ERROR) { \
- fprintf(stderr, "%s: %s\n", \
- gpgme_strsource(err), gpgme_strerror(err)); \
- return ret; \
- } \
- } while(0)
-#endif
-
static void init_gpgme()
{
/* The GPGME library communicates with child processes (the