summaryrefslogtreecommitdiff
path: root/file_io/unix
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-01-05 00:10:11 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-01-05 00:10:11 +0000
commita3fa00df57add7e93d9e538ce7943866911adbd7 (patch)
tree4d3a98b60458a3920bbd6533fcb6972171a00bbe /file_io/unix
parente040f20816fb9b889c4bbaabe3e073e4256bb6ce (diff)
downloadlibapr-a3fa00df57add7e93d9e538ce7943866911adbd7.tar.gz
We need to initialize have_corkable_tcp to 0, otherwise on platforms
that can't cork, we get a syntax error when we check #if HAVE_CORKABLE_TCP, because HAVE_CORKABLE_TCP is empty git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix')
-rw-r--r--file_io/unix/fileacc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file_io/unix/fileacc.c b/file_io/unix/fileacc.c
index 6bb9241c9..ecc78fc4d 100644
--- a/file_io/unix/fileacc.c
+++ b/file_io/unix/fileacc.c
@@ -57,7 +57,7 @@
/* A file to put ALL of the accessor functions for apr_file_t types. */
-apr_status_t apr_get_filename(char **fname, apr_file_t *thefile)
+apr_status_t apr_get_filename(const char **fname, apr_file_t *thefile)
{
#ifdef WIN32 /* this test is only good until some other platform trys wchar* */
#if APR_HAS_UNICODE_FS
@@ -70,10 +70,10 @@ apr_status_t apr_get_filename(char **fname, apr_file_t *thefile)
}
else
#endif /* !APR_HAS_UNICODE_FS */
- *fname = apr_pstrdup(thefile->cntxt, thefile->n.fname);
+ *fname = thefile->n.fname;
#else /* !def Win32 */
- *fname = apr_pstrdup(thefile->cntxt, thefile->fname);
+ *fname = thefile->fname;
#endif
return APR_SUCCESS;
}