summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/except.c
diff options
context:
space:
mode:
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);
}