diff options
author | Jani Nikula <jani@nikula.org> | 2017-10-07 11:44:04 +0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2017-10-09 22:24:02 -0300 |
commit | 0f314c0c99befea599a68bea51d759b4133efef6 (patch) | |
tree | 6d7fa97122e87bf6dcdb221267ac052f48331f59 /debugger.c | |
parent | 54aef071590cb23f61da943daa29080cf7446696 (diff) |
cli: convert notmuch_bool_t to stdbool
C99 stdbool turned 18 this year. There really is no reason to use our
own, except in the library interface for backward
compatibility. Convert the cli and test binaries to stdbool.
Diffstat (limited to 'debugger.c')
-rw-r--r-- | debugger.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -28,20 +28,20 @@ #define RUNNING_ON_VALGRIND 0 #endif -notmuch_bool_t +bool debugger_is_active (void) { char buf[1024]; if (RUNNING_ON_VALGRIND) - return TRUE; + return true; sprintf (buf, "/proc/%d/exe", getppid ()); if (readlink (buf, buf, sizeof (buf)) != -1 && strncmp (basename (buf), "gdb", 3) == 0) { - return TRUE; + return true; } - return FALSE; + return false; } |