summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/except.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-05-11 15:14:34 +0000
committerBenny Prijono <bennylp@teluu.com>2007-05-11 15:14:34 +0000
commit208776ec0c5c77623637a28b88391067df24e682 (patch)
treed474825faeaa48869df57b5470a8ba417ebf4489 /pjlib/src/pj/except.c
parentb4e01cefd4f354128396e85f205ccfa0879bc319 (diff)
HUGE changeset to make the rest of the libraries compile with C++ mode
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1266 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/except.c')
-rw-r--r--pjlib/src/pj/except.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pjlib/src/pj/except.c b/pjlib/src/pj/except.c
index 3b7e9817..006671e2 100644
--- a/pjlib/src/pj/except.c
+++ b/pjlib/src/pj/except.c
@@ -41,7 +41,8 @@ PJ_DEF(void) pj_throw_exception_(int exception_id)
{
struct pj_exception_state_t *handler;
- handler = pj_thread_local_get(thread_local_id);
+ handler = (struct pj_exception_state_t*)
+ pj_thread_local_get(thread_local_id);
if (handler == NULL) {
PJ_LOG(1,("except.c", "!!!FATAL: unhandled exception %s!\n",
pj_exception_id_name(exception_id)));
@@ -78,7 +79,8 @@ PJ_DEF(void) pj_push_exception_handler_(struct pj_exception_state_t *rec)
pj_assert(thread_local_id != -1);
pj_atexit(&exception_cleanup);
}
- parent_handler = pj_thread_local_get(thread_local_id);
+ parent_handler = (struct pj_exception_state_t *)
+ pj_thread_local_get(thread_local_id);
rec->prev = parent_handler;
pj_thread_local_set(thread_local_id, rec);
}
@@ -87,7 +89,8 @@ PJ_DEF(void) pj_pop_exception_handler_(void)
{
struct pj_exception_state_t *handler;
- handler = pj_thread_local_get(thread_local_id);
+ handler = (struct pj_exception_state_t *)
+ pj_thread_local_get(thread_local_id);
pj_assert(handler != NULL);
pj_thread_local_set(thread_local_id, handler->prev);
}