]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/lt_dlloader.c (lt_dlloader_remove): Since the return
authorGary V. Vaughan <gary@gnu.org>
Mon, 30 Aug 2004 12:33:09 +0000 (12:33 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 30 Aug 2004 12:33:09 +0000 (12:33 +0000)
value of this function is often passed to free, don't declare it
`const'. Responsibility for this memory is given back to the
caller on return.
* libltdl/lt_dlloader.h (lt_dlloader_remove): Ditto.
* libltdl/ltdl.c (lt_dlexit): Adjust.
* NEWS: Updated.

ChangeLog
NEWS
libltdl/lt_dlloader.c
libltdl/lt_dlloader.h
libltdl/ltdl.c

index 8fe24f11c0ecd7b93b05441b5cef22d341e0647d..9e329945dc769841093239b985ccc6c9790cced2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2004-08-30  Gary V. Vaughan  <gary@gnu.org>
+
+       * libltdl/lt_dlloader.c (lt_dlloader_remove): Since the return
+       value of this function is often passed to free, don't declare it
+       `const'. Responsibility for this memory is given back to the
+       caller on return.
+       * libltdl/lt_dlloader.h (lt_dlloader_remove): Ditto.
+       * libltdl/ltdl.c (lt_dlexit): Adjust.
+       * NEWS: Updated.
+
 2004-08-30  Andreas Schwab  <schwab@suse.de>
 
        * libltdl/ltdl.c (lt_dlexit): Remove lvalue cast.
diff --git a/NEWS b/NEWS
index bcda7126cf49f2caab3d88ad12e99de3247993a3..343a23d1c89c10c1850bdf14cc13cf4ba980776b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,7 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
 New in 1.9d: 2004-??-??; CVS version 1.9c, Libtool team:
-* ???
+* Return type of lt_dlloader_remove is no longer `const'.
 \f
 New in 1.9b: 2004-08-29; CVS version 1.5a, Libtool team:
 * The /^_?LT_[A-Z_]+$/ namespace is now reserved for Libtool's own macros.
index 714eb4ce86255ca52f40d1a805993a86d47e3e56..8487747c19b2099ea030f7118281f5b62f6049e9 100644 (file)
@@ -109,7 +109,7 @@ lt_dlloader_get     (lt_dlloader loader)
    was no match, return NULL; if there is an error, return NULL and
    set an error for lt_dlerror; in either case the loader list is
    not changed.  */
-const lt_dlvtable *
+lt_dlvtable *
 lt_dlloader_remove (const char *name)
 {
   const lt_dlvtable *  vtable  = lt_dlloader_find (name);
index c65df38768b62b2914ead00f1604ea17c933c317..6bf66b7cf0e73b252334f54a8a8bc5f2525d9efe 100644 (file)
@@ -70,7 +70,7 @@ typedef struct {
 LT_SCOPE int           lt_dlloader_add    (const lt_dlvtable *vtable);
 LT_SCOPE lt_dlloader   lt_dlloader_next   (const lt_dlloader loader);
 
-LT_SCOPE const lt_dlvtable *lt_dlloader_remove (const char *name);
+LT_SCOPE lt_dlvtable * lt_dlloader_remove      (const char *name);
 LT_SCOPE const lt_dlvtable *lt_dlloader_find   (const char *name);
 LT_SCOPE const lt_dlvtable *lt_dlloader_get    (lt_dlloader loader);
 
index f25333186922f280501d9ff3e8af1a19c299a19c..25fe418aa7da8b5aa745c0481ff0f6eb3ef3d33e 100644 (file)
@@ -290,7 +290,7 @@ lt_dlexit (void)
       /* close all loaders */
       while (loader = lt_dlloader_next (loader))
        {
-         const lt_dlvtable *vtable = lt_dlloader_get (loader);
+         lt_dlvtable *vtable = (lt_dlvtable *) lt_dlloader_get (loader);
 
          if ((vtable = lt_dlloader_remove (vtable->name)))
            {