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/ChangeLog | 4 ++++ cpukit/libcsupport/src/privateenv.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * src/privateenv.c: Fix prototype for free_user_env. + 2003-02-11 Ralf Corsepius * 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 -- cgit v1.2.3