[Pkg-shadow-commits] r2525 - in upstream/trunk: . libmisc
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun Mar 15 21:15:48 UTC 2009
Author: nekral-guest
Date: 2009-03-15 21:15:48 +0000 (Sun, 15 Mar 2009)
New Revision: 2525
Modified:
upstream/trunk/ChangeLog
upstream/trunk/libmisc/cleanup.c
Log:
* libmisc/cleanup.c: Fix del_cleanup. The arguments were not
desynchronized with the cleanup functions.
* libmisc/cleanup.c: cleanup_function_args is an array of void
pointer, not strings.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-03-15 21:12:57 UTC (rev 2524)
+++ upstream/trunk/ChangeLog 2009-03-15 21:15:48 UTC (rev 2525)
@@ -1,5 +1,12 @@
2009-03-15 Nicolas François <nicolas.francois at centraliens.net>
+ * libmisc/cleanup.c: Fix del_cleanup. The arguments were not
+ desynchronized with the cleanup functions.
+ * libmisc/cleanup.c: cleanup_function_args is an array of void
+ pointer, not strings.
+
+2009-03-15 Nicolas François <nicolas.francois at centraliens.net>
+
* libmisc/find_new_gid.c: Fix find_new_gid() the current group
database was not taken into account.
Modified: upstream/trunk/libmisc/cleanup.c
===================================================================
--- upstream/trunk/libmisc/cleanup.c 2009-03-15 21:12:57 UTC (rev 2524)
+++ upstream/trunk/libmisc/cleanup.c 2009-03-15 21:15:48 UTC (rev 2525)
@@ -39,7 +39,7 @@
*/
#define CLEANUP_FUNCTIONS 10
static cleanup_function cleanup_functions[CLEANUP_FUNCTIONS];
-static const char * cleanup_function_args[CLEANUP_FUNCTIONS];
+static void * cleanup_function_args[CLEANUP_FUNCTIONS];
/*
* - Cleanup functions shall not fail.
@@ -113,8 +113,10 @@
if (i == (CLEANUP_FUNCTIONS -1)) {
cleanup_functions[i] = NULL;
+ cleanup_function_args[i] = NULL;
} else {
cleanup_functions[i] = cleanup_functions[i+1];
+ cleanup_function_args[i] = cleanup_function_args[i+1];
}
/* A NULL indicates the end of the stack */
More information about the Pkg-shadow-commits
mailing list