[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
minor ltdl.c fix
From: |
Michael Pruett |
Subject: |
minor ltdl.c fix |
Date: |
Tue, 4 Sep 2001 19:11:00 -0700 |
User-agent: |
Mutt/1.2.5i |
Currently tryall_dlopen_module is called with 0 as the argument for the
parameter prefix, of type const char *. Doing so without a cast
results in warnings. I believe NULL should be passed instead.
Michael
--- ./libltdl/ltdl.c Sun Sep 2 16:42:00 2001
+++ ../libtool-1.4.1/./libltdl/ltdl.c Tue Sep 4 18:43:09 2001
@@ -1969,7 +1969,7 @@
shuffled. Otherwise, attempt to open FILENAME as a module. */
if (prefix)
{
- error += tryall_dlopen_module (handle, 0, prefix, filename);
+ error += tryall_dlopen_module (handle, NULL, prefix, filename);
}
else if (tryall_dlopen (handle, filename) != 0)
{
@@ -2003,7 +2003,7 @@
/* try to open the installed module */
if (installed && libdir)
{
- if (tryall_dlopen_module (handle, 0, libdir, dlname) == 0)
+ if (tryall_dlopen_module (handle, NULL, libdir, dlname) == 0)
return 0;
}
@@ -2016,7 +2016,7 @@
/* maybe it was moved to another directory */
{
- if (tryall_dlopen_module (handle, 0, dir, dlname) == 0)
+ if (tryall_dlopen_module (handle, NULL, dir, dlname) == 0)
return 0;
}
}
- minor ltdl.c fix,
Michael Pruett <=