From 491403e83828075c82c5ca0d8d7ee02308bb7255 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 27 Sep 2022 08:20:22 -0700 Subject: [PATCH] core plugin isXDot: take parameter as a const This function does not modify its input. --- plugin/core/gvrender_core_json.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/core/gvrender_core_json.c b/plugin/core/gvrender_core_json.c index 69c117cba..148d88bba 100644 --- a/plugin/core/gvrender_core_json.c +++ b/plugin/core/gvrender_core_json.c @@ -330,8 +330,7 @@ static void write_xdots (char * val, GVJ_t * job, state_t* sp) freeXDot(cmds); } -static int isXDot (char* name) -{ +static int isXDot(const char* name) { return streq(name, "_draw_") || streq(name, "_ldraw_") || streq(name, "_hdraw_") || streq(name, "_tdraw_") || streq(name, "_hldraw_") || streq(name, "_tldraw_"); -- 2.40.0