# HG changeset patch # User Eric Warmenhoven # Date 956008743 0 # Node ID 4290a5a20d3ca157b1d313e1fcc489894eea235b # Parent 96f7f937eb4bd57345425bdda5a5d6d0299996c9 [gaim-migrate @ 139] Fixed compilation warnings on FreeBSD. committer: Tailor Script diff -r 96f7f937eb4b -r 4290a5a20d3c src/plugins.c --- a/src/plugins.c Mon Apr 17 06:49:01 2000 +0000 +++ b/src/plugins.c Mon Apr 17 21:59:03 2000 +0000 @@ -130,7 +130,7 @@ * programming, by not using RTLD_GLOBAL :P ) */ plug->handle = dlopen(plug->filename, RTLD_LAZY); if (!plug->handle) { - error = dlerror(); + error = (char *)dlerror(); do_error_dialog(error, "Plugin Error"); g_free(plug); return; @@ -141,7 +141,7 @@ plugin_dialog = NULL; gaim_plugin_init = dlsym(plug->handle, "gaim_plugin_init"); - if ((error = dlerror()) != NULL) { + if ((error = (char *)dlerror()) != NULL) { do_error_dialog(error, "Plugin Error"); dlclose(plug->handle); g_free(plug); @@ -152,13 +152,13 @@ (*gaim_plugin_init)(plug->handle); cfunc = dlsym(plug->handle, "name"); - if ((error = dlerror()) == NULL) + if ((error = (char *)dlerror()) == NULL) plug->name = (*cfunc)(); else plug->name = NULL; cfunc = dlsym(plug->handle, "description"); - if ((error = dlerror()) == NULL) + if ((error = (char *)dlerror()) == NULL) plug->description = (*cfunc)(); else plug->description = NULL; @@ -330,7 +330,7 @@ p = gtk_object_get_user_data(GTK_OBJECT(i->data)); gaim_plugin_remove = dlsym(p->handle, "gaim_plugin_remove"); - if ((error = dlerror()) == NULL) + if ((error = (char *)dlerror()) == NULL) (*gaim_plugin_remove)(); while (c) { g = (struct gaim_callback *)c->data; @@ -361,7 +361,7 @@ gtk_text_insert(GTK_TEXT(plugtext), NULL, NULL, NULL, buffer, -1); gaim_plugin_config = dlsym(p->handle, "gaim_plugin_config"); - if ((error = dlerror()) == NULL) { + if ((error = (char *)dlerror()) == NULL) { gtk_signal_connect(GTK_OBJECT(config), "clicked", GTK_SIGNAL_FUNC(gaim_plugin_config), NULL); gtk_widget_set_sensitive(config, 1);