From: Matthew Fernandez Date: Sun, 24 Jul 2022 16:59:13 +0000 (-0700) Subject: ast: prototype 'pathcanon' in library header instead of inline near its use X-Git-Tag: 5.0.1~26^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45fdfad97ae308cb7d7db306ea6198077211e164;p=graphviz 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. --- 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) {