]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (advise_dup): Delete function no longer used
authorEric Blake <ebb9@byu.net>
Wed, 4 Jul 2007 21:28:00 +0000 (21:28 +0000)
committerEric Blake <ebb9@byu.net>
Wed, 4 Jul 2007 21:28:00 +0000 (21:28 +0000)
after memleak fix three days ago.

ChangeLog
libltdl/ltdl.c

index 0a0a3255d47260f348c021f274bab05e3cee61d2..427aa98dddcb9b0f252c9079aeea07f179c53ec0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-04  Eric Blake  <ebb9@byu.net>
+
+       * libltdl/ltdl.c (advise_dup): Delete function no longer used
+       after memleak fix three days ago.
+
 2007-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Cater to
        (func_mode_link) [cygwin|mingw]: Don't call dirname and
        basename directly; use func_dirname and func_basename
        when computing cwrapper names.  Use cwrapper to generate
-       wrapper script, and use pathname returned by 
+       wrapper script, and use pathname returned by
        func_ltwrapper_scriptname instead of $output.
        (func_mode_link) [NOT cygwin|mingw]: move wrapper script
        generation for non-win32 inside case statement, as default
        Use C89-compatible syntax to mimic variadic macros.
        Adjust all callers.
        (func_emit_libtool_cwrapperexe_source) [check_executable]:
-       avoid embedded #ifdefs; use S_IXGRP and S_IXOTH 
+       avoid embedded #ifdefs; use S_IXGRP and S_IXOTH
        unconditionally.
        (func_emit_libtool_cwrapperexe_source) [make_executable]:
        ditto.
        value to determine full absolute pathname of wrapper script, in
        $objdir. Unconditionally write script out to this pathname and
        set permission bits.  Remove extraneous ';' from debugging loop.
-       (f_e_l_c_s: main) [mingw]: DOS-ize $SHELL before populating     
-       newargv[0]; if $TARGETSHELL environment variable is set, use 
+       (f_e_l_c_s: main) [mingw]: DOS-ize $SHELL before populating
+       newargv[0]; if $TARGETSHELL environment variable is set, use
        it instead of $SHELL and do not DOS-ize.  Ensure newargv[1]
        (wrapper script absolute path) uses only '/', not '\'.  Make
        sure to call execv() with DOS-ized $SHELL (or un-DOS-ized
index 76a5a782091de58548dc41691fa382636188fa29..23e6061134d3feea4569990277651eb80b4bab76 100644 (file)
@@ -123,7 +123,6 @@ static      int     tryall_dlopen         (lt_dlhandle *handle,
                                       lt_dladvise padvise,
                                       const lt_dlvtable *vtable);
 static int     unload_deplibs        (lt_dlhandle handle);
-static lt__advise *advise_dup        (lt__advise *advise);
 static int     lt_argz_insert        (char **pargz, size_t *pargz_len,
                                       char *before, const char *entry);
 static int     lt_argz_insertinorder (char **pargz, size_t *pargz_len,
@@ -342,7 +341,7 @@ lt_dlexit (void)
    the dlhandle is stored at the address given in PHANDLE.  */
 static int
 tryall_dlopen (lt_dlhandle *phandle, const char *filename,
-              lt_dladvise padvise, const lt_dlvtable *vtable)
+              lt_dladvise padvise, const lt_dlvtable *vtable)
 {
   lt__handle * handle          = (lt__handle *) handles;
   const char * saved_error     = 0;
@@ -1247,7 +1246,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
 
       if (vtable)
        {
-         *phandle = (lt_dlhandle) lt__zalloc (sizeof (lt__handle));
+         *phandle = (lt_dlhandle) lt__zalloc (sizeof (lt__handle));
 
          if (*phandle == NULL)
            {
@@ -1547,13 +1546,6 @@ lt_dladvise_global (lt_dladvise *padvise)
   return 0;
 }
 
-static lt__advise *
-advise_dup (lt__advise *advise)
-{
-  lt__advise *dup = (lt__advise *) lt__zalloc (sizeof (lt__advise));
-  return (lt__advise *) memcpy (dup, advise, sizeof (lt__advise));
-}
-
 /* Libtool-1.5.x interface for loading a new module named FILENAME.  */
 lt_dlhandle
 lt_dlopen (const char *filename)