From 83eda9b994bfc70c8a1b1cf835d3729db1150335 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 28 Feb 2003 08:06:58 +0000 Subject: Merger from rtems-4-6-branch. --- cpukit/libcsupport/src/privateenv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/libcsupport/src/privateenv.c') diff --git a/cpukit/libcsupport/src/privateenv.c b/cpukit/libcsupport/src/privateenv.c index 37d7805eb4..a4c71b964a 100644 --- a/cpukit/libcsupport/src/privateenv.c +++ b/cpukit/libcsupport/src/privateenv.c @@ -34,8 +34,10 @@ extern Chain_Control rtems_filesystem_mount_table_control; * thread dispatching disabled! */ static void -free_user_env(rtems_user_env_t *env) +free_user_env(void *venv) { + rtems_user_env_t *env = (rtems_user_env_t*) venv ; + if (env != &rtems_global_user_env #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 -- cgit v1.2.3