aboutsummaryrefslogtreecommitdiff
path: root/file_io/unix/filepath.c
diff options
context:
space:
mode:
Diffstat (limited to 'file_io/unix/filepath.c')
-rw-r--r--file_io/unix/filepath.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/file_io/unix/filepath.c b/file_io/unix/filepath.c
index 66df39565..9fdc77fa0 100644
--- a/file_io/unix/filepath.c
+++ b/file_io/unix/filepath.c
@@ -60,10 +60,7 @@
#include <unistd.h>
#endif
-#include <direct.h>
-
-
-/* Any OS that requires/refuses trailing slashes should be delt with here.
+/* Any OS that requires/refuses trailing slashes should be dealt with here.
*/
APR_DECLARE(apr_status_t) apr_filepath_get(char **defpath, apr_pool_t *p)
{
@@ -79,7 +76,7 @@ APR_DECLARE(apr_status_t) apr_filepath_get(char **defpath, apr_pool_t *p)
}
-/* Any OS that requires/refuses trailing slashes should be delt with here
+/* Any OS that requires/refuses trailing slashes should be dealt with here
*/
APR_DECLARE(apr_status_t) apr_filepath_set(const char *path, apr_pool_t *p)
{
@@ -88,10 +85,9 @@ APR_DECLARE(apr_status_t) apr_filepath_set(const char *path, apr_pool_t *p)
return APR_SUCCESS;
}
-
-APR_DECLARE(apr_status_t) apr_filepath_parse_root(const char **rootpath,
- const char **inpath,
- apr_pool_t *p)
+APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath,
+ const char **inpath,
+ apr_pool_t *p)
{
if (**inpath == '/')
{
@@ -103,7 +99,6 @@ APR_DECLARE(apr_status_t) apr_filepath_parse_root(const char **rootpath,
return APR_ERELATIVE;
}
-
APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
const char *rootpath,
const char *addpath,
@@ -314,4 +309,4 @@ APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
*newpath = apr_pstrdup(p, path);
return (newpath ? APR_SUCCESS : APR_ENOMEM);
-} \ No newline at end of file
+}