Coding style fix
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Jan 2016 20:44:39 +0000 (15:44 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 16:57:26 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/text/text.c
plugins/plugin.c

index a839ac69ff845711d27285465c9eedfa87031648..8e95c8b44884fe96d88423c348c325dfb7ae1f72 100644 (file)
@@ -34,9 +34,6 @@
 #include <stdio.h>
 #include <stdbool.h>
 
-static
-const char *plugin_name = "ctf-text";
-
 static
 enum bt_component_status ctf_text_init(struct bt_component *);
 static
index e6afaf59ca3275c2f21594aaea34e8d73152bb95..9218868d3438fd8d8c51a0397909337035c76364 100644 (file)
@@ -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;
This page took 0.026138 seconds and 4 git commands to generate.