summaryrefslogtreecommitdiff
path: root/file_io/unix
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-31 11:17:13 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-31 11:17:13 +0000
commita8c0c27a0a4b66ce82f28d0518841aad720d91cc (patch)
tree582567ccf6c961f3298f4247c5cc105ef8ca516a /file_io/unix
parent96cbda84828b9fa4b5f2b0a69265e259be64957e (diff)
downloadlibapr-a8c0c27a0a4b66ce82f28d0518841aad720d91cc.tar.gz
get filepath.c to compile on Linux/FreeBSD/etc. by dropping the
include of direct.h (a Windows thing as far as google can tell me) fix a warning by changing the name of apr_filepath_parse_root() to match the prototype in apr_file_info.h other trivial tweaks (spelling, adding '\n' to last line) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61411 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix')
-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
+}