From bb7aec1f9aea378741fa10ae49ba527e2f3489df Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 26 Jan 2016 15:44:39 -0500 Subject: [PATCH] Coding style fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- plugins/ctf/text/text.c | 3 --- plugins/plugin.c | 9 +++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/ctf/text/text.c b/plugins/ctf/text/text.c index a839ac69f..8e95c8b44 100644 --- a/plugins/ctf/text/text.c +++ b/plugins/ctf/text/text.c @@ -34,9 +34,6 @@ #include #include -static -const char *plugin_name = "ctf-text"; - static enum bt_component_status ctf_text_init(struct bt_component *); static diff --git a/plugins/plugin.c b/plugins/plugin.c index e6afaf59c..9218868d3 100644 --- a/plugins/plugin.c +++ b/plugins/plugin.c @@ -71,8 +71,7 @@ struct bt_plugin *bt_plugin_create(GModule *module) bt_object_init(plugin, bt_plugin_destroy); if (!g_module_symbol(module, PLUGIN_SYMBOL_NAME, - (gpointer *) &plugin->name)) - { + (gpointer *) &plugin->name)) { printf_error("Unable to resolve plugin symbol %s from %s", PLUGIN_SYMBOL_NAME, g_module_name(module)); goto error; @@ -80,15 +79,13 @@ struct bt_plugin *bt_plugin_create(GModule *module) printf("Loaded plugin with name %s\n", plugin->name); if (!g_module_symbol(module, PLUGIN_SYMBOL_LICENSE, - (gpointer *) &plugin->license)) - { + (gpointer *) &plugin->license)) { printf_error("Unable to resolve plugin symbol %s from %s", PLUGIN_SYMBOL_LICENSE, g_module_name(module)); goto error; } if (!g_module_symbol(module, PLUGIN_SYMBOL_INIT, - (gpointer *) &plugin->init)) - { + (gpointer *) &plugin->init)) { printf_error("Unable to resolve plugin symbol %s from %s", PLUGIN_SYMBOL_INIT, g_module_name(module)); goto error; -- 2.34.1