X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/7895cbd715476bb471e8261761e7a9452b7166c6..84b0fcf3611555f616abf2dcc80ec30b18f16e29:/sbr/path.c diff --git a/sbr/path.c b/sbr/path.c index ecd2eb81..d425dc8b 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -5,8 +5,9 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "path.h" +#include "h/utils.h" #include "m_maildir.h" #define CWD "./" @@ -22,12 +23,16 @@ static char *pwds; static char *expath(char *,int); static void compath(char *); + +/* Return value must be free(3)'d. */ char * pluspath(char *name) { return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF); } + +/* Return value must be free(3)'d. */ char * path(char *name, int flag) { @@ -42,6 +47,7 @@ path(char *name, int flag) } +/* Return value must be free(3)'d. */ static char * expath (char *name, int flag) {