]> granicus.if.org Git - graphviz/commitdiff
mark name and plugin_path to gvplugin_activate as const
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 29 May 2021 21:05:33 +0000 (14:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 01:57:34 +0000 (18:57 -0700)
Neither of these are modified by the function.

lib/gvc/gvplugin.c

index d59199d20bbcd98ea8ba0db6807583ef2d5f9ec3..f09dab28b3237475e332079dedc9d5b11559d14d 100644 (file)
@@ -129,8 +129,8 @@ boolean gvplugin_install(GVC_t * gvc, api_t api, const char *typestr,
  * manually changed in the config file.
  */
 static boolean gvplugin_activate(GVC_t * gvc, api_t api,
-                                 const char *typestr, char *name,
-                                 char *plugin_path,
+                                 const char *typestr, const char *name,
+                                 const char *plugin_path,
                                  gvplugin_installed_t * typeptr)
 {
     gvplugin_available_t *pnext;