X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=debugger.c;h=5cb38ac444e35d774152b64973790c4fd5ec7f4d;hp=e8b9378e73c31ce327bf93888052d3893223d52f;hb=fd3c93650d976f630ba0a60341a1a695422e4969;hpb=986f6c98244610da6bba88d0c92895b9758973ee diff --git a/debugger.c b/debugger.c index e8b9378e..5cb38ac4 100644 --- a/debugger.c +++ b/debugger.c @@ -13,7 +13,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/ . + * along with this program. If not, see https://www.gnu.org/licenses/ . * * Author: Chris Wilson */ @@ -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; }