From 6a64a7118d4b0c13789bbe69f2575dd9c1c88524 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 27 Aug 2013 12:29:56 -0600 Subject: [PATCH] make thread_check_current_buffer return bool --- src/thread.c | 6 +++--- src/thread.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/thread.c b/src/thread.c index ae2212e697d..20d0568bef5 100644 --- a/src/thread.c +++ b/src/thread.c @@ -882,7 +882,7 @@ DEFUN ("all-threads", Fall_threads, Sall_threads, 0, 0, 0, -int +bool thread_check_current_buffer (struct buffer *buffer) { struct thread_state *iter; @@ -893,10 +893,10 @@ thread_check_current_buffer (struct buffer *buffer) continue; if (iter->m_current_buffer == buffer) - return 1; + return true; } - return 0; + return false; } diff --git a/src/thread.h b/src/thread.h index 231c7acc31f..2b9963423db 100644 --- a/src/thread.h +++ b/src/thread.h @@ -241,6 +241,6 @@ int thread_select (select_func *func, int max_fds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, EMACS_TIME *timeout, sigset_t *sigmask); -int thread_check_current_buffer (struct buffer *); +bool thread_check_current_buffer (struct buffer *); #endif /* THREAD_H */ -- 2.39.2