From 94e10f945499dd393ddacf8375af393335853f1a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 3 Oct 2006 17:00:00 +0000 Subject: Fixed minor error in pj_thread_is_registered() API. The return value should be pj_bool_t instead of pj_status_t. (Note: this change should not break anything). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@746 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/os.h | 2 +- pjlib/src/pj/os_core_unix.c | 2 +- pjlib/src/pj/os_core_win32.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pjlib/include/pj/os.h b/pjlib/include/pj/os.h index 2720e7f7..98a94c37 100644 --- a/pjlib/include/pj/os.h +++ b/pjlib/include/pj/os.h @@ -134,7 +134,7 @@ PJ_DECL(pj_status_t) pj_thread_register ( const char *thread_name, * * @return Non-zero if it is registered. */ -PJ_DECL(pj_status_t) pj_thread_is_registered(void); +PJ_DECL(pj_bool_t) pj_thread_is_registered(void); /** diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c index 03aa8f86..c7ea2594 100644 --- a/pjlib/src/pj/os_core_unix.c +++ b/pjlib/src/pj/os_core_unix.c @@ -182,7 +182,7 @@ PJ_DEF(pj_uint32_t) pj_getpid(void) /* * Check if this thread has been registered to PJLIB. */ -PJ_DEF(pj_status_t) pj_thread_is_registered(void) +PJ_DEF(pj_bool_t) pj_thread_is_registered(void) { return pj_thread_local_get(thread_tls_id) != 0; } diff --git a/pjlib/src/pj/os_core_win32.c b/pjlib/src/pj/os_core_win32.c index 8ab04add..27091cc6 100644 --- a/pjlib/src/pj/os_core_win32.c +++ b/pjlib/src/pj/os_core_win32.c @@ -188,7 +188,7 @@ PJ_DEF(pj_uint32_t) pj_getpid(void) /* * Check if this thread has been registered to PJLIB. */ -PJ_DEF(pj_status_t) pj_thread_is_registered(void) +PJ_DEF(pj_bool_t) pj_thread_is_registered(void) { return pj_thread_local_get(thread_tls_id) != 0; } -- cgit v1.2.3