]> granicus.if.org Git - graphviz/commitdiff
remove unused return value of gvplugin_activate
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 29 May 2021 21:07:00 +0000 (14:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 01:57:34 +0000 (18:57 -0700)
lib/gvc/gvplugin.c

index f09dab28b3237475e332079dedc9d5b11559d14d..829a0a517204d83c5161b5e45a97d4e70b7a0e91 100644 (file)
@@ -128,10 +128,9 @@ boolean gvplugin_install(GVC_t * gvc, api_t api, const char *typestr,
  * NB the quality value is not replaced as it might have been
  * manually changed in the config file.
  */
-static boolean gvplugin_activate(GVC_t * gvc, api_t api,
-                                 const char *typestr, const char *name,
-                                 const char *plugin_path,
-                                 gvplugin_installed_t * typeptr)
+static void gvplugin_activate(GVC_t * gvc, api_t api, const char *typestr,
+                              const char *name, const char *plugin_path,
+                              gvplugin_installed_t * typeptr)
 {
     gvplugin_available_t *pnext;
 
@@ -144,11 +143,10 @@ static boolean gvplugin_activate(GVC_t * gvc, api_t api,
             && (pnext->package->path != 0)
             && (strcasecmp(plugin_path, pnext->package->path) == 0)) {
             pnext->typeptr = typeptr;
-            return TRUE;
+            return;
         }
         pnext = pnext->next;
     }
-    return FALSE;
 }
 
 gvplugin_library_t *gvplugin_library_load(GVC_t * gvc, char *path)