summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/thread.c6
-rw-r--r--src/thread.h2
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 */