]> granicus.if.org Git - graphviz/commitdiff
pathfind: remove an unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 21 Mar 2022 04:45:17 +0000 (21:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 05:31:13 +0000 (22:31 -0700)
lib/ast/pathfind.c

index a34ae21cfedb744c3afaac7c54e06b76b8ee8e4b..da9cdcce50d726c41926bc3db4f4f6df1639539e 100644 (file)
@@ -73,7 +73,7 @@ char *pathfind(const char *name, const char *lib, const char *type,
        }
        if (lib) {
            if ((s = strrchr(lib, ':')))
-               lib = (const char *) s + 1;
+               lib = s + 1;
            snprintf(tmp, sizeof(tmp), "lib/%s/%s", lib, name);
            if (pathpath(buf, tmp))
                return buf;