]> granicus.if.org Git - graphviz/commitdiff
mark gvplugin_api input as const
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 May 2020 01:25:53 +0000 (18:25 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Jun 2020 00:35:25 +0000 (17:35 -0700)
lib/gvc/gvcproc.h
lib/gvc/gvplugin.c

index 7210a50dc5480c1c1406a58bcd4b45abd6c24b17..826ce3fb66ad6cb3c2984eb3bf094656b7896011 100644 (file)
@@ -33,7 +33,7 @@
                    gvplugin_installed_t * typeptr);
     extern gvplugin_available_t *gvplugin_load(GVC_t * gvc, api_t api, const char *type);
     extern gvplugin_library_t *gvplugin_library_load(GVC_t *gvc, char *path);
-    extern api_t gvplugin_api(char *str);
+    extern api_t gvplugin_api(const char *str);
     extern char * gvplugin_api_name(api_t api);
     extern void gvplugin_write_status(GVC_t * gvc);
     extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str);
index c439ea43aba27c05b44c6d0813cbf29fc8526d7d..99b98b1b2862d7c3aa64f38cc6bd539f60fd0830 100644 (file)
@@ -56,7 +56,7 @@ static char *api_names[] = { APIS };    /* "render", "layout", ... */
 #undef ELEM
 
 /* translate a string api name to its type, or -1 on error */
-api_t gvplugin_api(char *str)
+api_t gvplugin_api(const char *str)
 {
     int api;