From: Matthew Fernandez Date: Mon, 21 Mar 2022 04:45:17 +0000 (-0700) Subject: pathfind: remove an unnecessary cast X-Git-Tag: 4.0.0~161^2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d1fea6827c6407b25cdadc4001b7171ae9033fc;p=graphviz pathfind: remove an unnecessary cast --- diff --git a/lib/ast/pathfind.c b/lib/ast/pathfind.c index a34ae21cf..da9cdcce5 100644 --- a/lib/ast/pathfind.c +++ b/lib/ast/pathfind.c @@ -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;