]> granicus.if.org Git - graphviz/commitdiff
mark string arguments to gvplugin_package_record() as const
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 May 2020 01:10:33 +0000 (18:10 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Jun 2020 00:35:25 +0000 (17:35 -0700)
lib/gvc/gvconfig.c

index 59c461441bf605d3369abca260c4f5e3e6bf5bdc..aaae4f15dfa0db67c350fe1d80da735200da89d8 100644 (file)
@@ -90,7 +90,7 @@ extern Dt_t * textfont_dict_open(GVC_t *gvc);
 
  */
 
-static gvplugin_package_t * gvplugin_package_record(GVC_t * gvc, char *path, char *name)
+static gvplugin_package_t * gvplugin_package_record(GVC_t * gvc, const char *path, const char *name)
 {
     gvplugin_package_t *package = gmalloc(sizeof(gvplugin_package_t));
     package->path = (path) ? strdup(path) : NULL;