summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/privateenv.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 08:06:58 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 08:06:58 +0000
commit83eda9b994bfc70c8a1b1cf835d3729db1150335 (patch)
treebcf1f14576c0cbb38d477d155868c76c187e6284 /cpukit/libcsupport/src/privateenv.c
parentRemove corrupted ChangeLog entry. (diff)
downloadrtems-83eda9b994bfc70c8a1b1cf835d3729db1150335.tar.bz2
Merger from rtems-4-6-branch.
Diffstat (limited to 'cpukit/libcsupport/src/privateenv.c')
-rw-r--r--cpukit/libcsupport/src/privateenv.c4
1 files changed, 3 insertions, 1 deletions
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