Ethereal-dev: [Ethereal-dev] Problem compiling epan/plugins.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Thu, 20 May 2004 22:42:06 +0200
Dear all,

from epan/plugins.c:

void
init_plugins(const char *plugin_dir)
{
#ifdef WIN32
    const char *datafile_dir;
#endif

if (plugin_list == NULL) /* ensure init_plugins is only run once */
    {
	/*
	 * Scan the global plugin directory.
	 */
    datafile_dir = get_plugins_global_dir(plugin_dir);
	plugins_scan_dir(datafile_dir);
    g_free((char *) datafile_dir);

	/*
	 * Scan the users plugin directory.
	 */
    datafile_dir = get_plugins_pers_dir();
	plugins_scan_dir(datafile_dir);
    g_free((char *) datafile_dir);
    }
}

This does not compile on non-Windows platforms.

Thanks for fixing it.

Best regards
Michael