diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-10-03 17:00:00 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-10-03 17:00:00 +0000 |
commit | 94e10f945499dd393ddacf8375af393335853f1a (patch) | |
tree | f4f905e94ed7fdd2ccf1a46fce31d3c3406dd3a5 | |
parent | f21319f288dfd1703311e09b38a21bd552c2b088 (diff) |
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
-rw-r--r-- | pjlib/include/pj/os.h | 2 | ||||
-rw-r--r-- | pjlib/src/pj/os_core_unix.c | 2 | ||||
-rw-r--r-- | 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; } |