diff options
author | Tom Tromey <tromey@redhat.com> | 2013-08-27 12:29:56 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-08-27 12:29:56 -0600 |
commit | 6a64a7118d4b0c13789bbe69f2575dd9c1c88524 (patch) | |
tree | 114de34eb145769d9ace6a34760b235a1d3af780 /src | |
parent | 5b05b5a6bc5a3293e692d9db969e8a24aa80f1a6 (diff) | |
download | emacs-6a64a7118d4b0c13789bbe69f2575dd9c1c88524.tar.gz |
make thread_check_current_buffer return bool
Diffstat (limited to 'src')
-rw-r--r-- | src/thread.c | 6 | ||||
-rw-r--r-- | 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 */ |