From Ruud Linders: report errors from "g_module_open()".
svn path=/trunk/; revision=5463
This commit is contained in:
parent
e390d7e0cc
commit
088398741d
4
AUTHORS
4
AUTHORS
|
@ -1187,6 +1187,10 @@ Stefan Wenk <stefan.wenk[AT]gmx.at> {
|
|||
SIP heuristic dissector
|
||||
}
|
||||
|
||||
Ruud Linders <ruud[AT]lucent.com> {
|
||||
Report errors from "g_module_open()"
|
||||
}
|
||||
|
||||
Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to
|
||||
give his permission to use his version of snprintf.c.
|
||||
|
||||
|
|
|
@ -1417,6 +1417,7 @@ B<http://www.ethereal.com>.
|
|||
Chenjiang Hu <chu[AT]chiaro.com>
|
||||
Kan Sasaki <sasaki[AT]fcc.ad.jp>
|
||||
Stefan Wenk <stefan.wenk[AT]gmx.at>
|
||||
Ruud Linders <ruud[AT]lucent.com>
|
||||
|
||||
Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to give his
|
||||
permission to use his version of snprintf.c.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* plugins.c
|
||||
* plugin routines
|
||||
*
|
||||
* $Id: plugins.c,v 1.52 2002/05/05 00:34:11 guy Exp $
|
||||
* $Id: plugins.c,v 1.53 2002/05/14 10:32:12 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -197,7 +197,12 @@ plugins_scan_dir(const char *dirname)
|
|||
|
||||
snprintf(filename, FILENAME_LEN, "%s" G_DIR_SEPARATOR_S "%s",
|
||||
dirname, file->d_name);
|
||||
if ((handle = g_module_open(filename, 0)) == NULL) continue;
|
||||
if ((handle = g_module_open(filename, 0)) == NULL)
|
||||
{
|
||||
g_warning("Couldn't load module %s: %s", filename,
|
||||
g_module_error());
|
||||
continue;
|
||||
}
|
||||
name = (gchar *)file->d_name;
|
||||
if (g_module_symbol(handle, "version", (gpointer*)&version) == FALSE)
|
||||
{
|
||||
|
@ -221,7 +226,8 @@ plugins_scan_dir(const char *dirname)
|
|||
*/
|
||||
if (!g_module_symbol(handle, "plugin_init", (gpointer*)&init))
|
||||
{
|
||||
g_warning("The plugin %s has a plugin_reg_handoff symbol but no plugin_init routine", name);
|
||||
g_warning("The plugin %s has a plugin_reg_handoff symbol but no plugin_init routine",
|
||||
name, filename);
|
||||
g_module_close(handle);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue