From: Jérémie Galarneau Date: Tue, 26 Jan 2016 20:44:39 +0000 (-0500) Subject: Coding style fix X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bb7aec1f9aea378741fa10ae49ba527e2f3489df;p=deliverable%2Fbabeltrace.git Coding style fix Signed-off-by: Jérémie Galarneau --- 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;