]> granicus.if.org Git - graphviz/commitdiff
ast: prototype 'pathcanon' in library header instead of inline near its use
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Jul 2022 16:59:13 +0000 (09:59 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jul 2022 00:02:13 +0000 (17:02 -0700)
This squashes a -Wmissing-prototypes, is better style, and is generally inline
with the rest of lib/ast.

lib/ast/ast.h
lib/ast/pathaccess.c

index f04d194d8c05f7f38f4ed2f970598928a429551e..d53760a001e9701950eb8d48acccd79d03253601 100644 (file)
@@ -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 *);
 
index a9f61147c1ac4793e99281061dff6444bb66171c..8d46eb1c6849a912183bfdce0c5fb52795fcb4f4 100644 (file)
@@ -24,8 +24,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-char *pathcanon(char *path);
-
 char *pathaccess(char *path, const char *dirs,
                 const char *a, const char *b, int mode)
 {