From 45fdfad97ae308cb7d7db306ea6198077211e164 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 24 Jul 2022 09:59:13 -0700 Subject: [PATCH] ast: prototype 'pathcanon' in library header instead of inline near its use This squashes a -Wmissing-prototypes, is better style, and is generally inline with the rest of lib/ast. --- lib/ast/ast.h | 1 + lib/ast/pathaccess.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ast/ast.h b/lib/ast/ast.h index f04d194d8..d53760a00 100644 --- a/lib/ast/ast.h +++ b/lib/ast/ast.h @@ -61,6 +61,7 @@ extern "C" { size_t); extern char *pathaccess(char *, const char *, const char *, const char *, int); + extern char *pathcanon(char*); extern const char *pathcat(char *, const char *, int, const char *, const char *); diff --git a/lib/ast/pathaccess.c b/lib/ast/pathaccess.c index a9f61147c..8d46eb1c6 100644 --- a/lib/ast/pathaccess.c +++ b/lib/ast/pathaccess.c @@ -24,8 +24,6 @@ #include #include -char *pathcanon(char *path); - char *pathaccess(char *path, const char *dirs, const char *a, const char *b, int mode) { -- 2.40.0