diff options
author | Justus Winter <justus@g10code.com> | 2017-01-10 12:31:46 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-01-10 12:31:46 +0100 |
commit | bfd6a490129ffc7c7ac8776bf5a5da3b1ddf6d42 (patch) | |
tree | 307d158b3d75fa0e909d5828aa9e942cabed835b /common/logging.h | |
parent | dirmngr: Use "pgpkey-hkps" and "pgpkey-hkp" for SRV record lookups. (diff) | |
download | gnupg2-bfd6a490129ffc7c7ac8776bf5a5da3b1ddf6d42.tar.xz gnupg2-bfd6a490129ffc7c7ac8776bf5a5da3b1ddf6d42.zip |
common: Fix fallback code.
* common/logging.c (_log_assert): Fix the variant for compilers that
do not support __FUNCTION__.
* common/logging.h (_log_assert): Likewise.
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'common/logging.h')
-rw-r--r-- | common/logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/logging.h b/common/logging.h index fc9e8461b..8edc5c9c7 100644 --- a/common/logging.h +++ b/common/logging.h @@ -62,7 +62,7 @@ estream_t log_get_stream (void); : _log_assert (#expr, __FILE__, __LINE__, __FUNCTION__)) #else /*!GPGRT_HAVE_MACRO_FUNCTION*/ void bug_at (const char *file, int line); - void _log_assert (const char *expr, const char *file, int line; + void _log_assert (const char *expr, const char *file, int line); # define BUG() bug_at( __FILE__ , __LINE__ ) # define log_assert(expr) \ ((expr) \ |