summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/libcsupport/ChangeLog4
-rw-r--r--cpukit/libcsupport/src/privateenv.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog
index 557656a0c2..56d65631db 100644
--- a/cpukit/libcsupport/ChangeLog
+++ b/cpukit/libcsupport/ChangeLog
@@ -4,6 +4,10 @@
* src/termios.c (rtems_termios_open): Fixed code the incorrectly
checked that the wrong pointer during allocation was NULL.
+2003-02-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * src/privateenv.c: Fix prototype for free_user_env.
+
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
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