X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=debugger.c;fp=debugger.c;h=5cb38ac444e35d774152b64973790c4fd5ec7f4d;hp=0fa0fb6bda23881ed9c01b42f974f6e4b652526b;hb=0f314c0c99befea599a68bea51d759b4133efef6;hpb=54aef071590cb23f61da943daa29080cf7446696 diff --git a/debugger.c b/debugger.c index 0fa0fb6b..5cb38ac4 100644 --- a/debugger.c +++ b/debugger.c @@ -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; }