From 3d1fea6827c6407b25cdadc4001b7171ae9033fc Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 20 Mar 2022 21:45:17 -0700 Subject: [PATCH] pathfind: remove an unnecessary cast --- lib/ast/pathfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0