See subject line and log message withiin patch.

- Julian

Avoid casting away "const".  No functional change.

* apr/file_io/unix/tempdir.c
  (test_tempdir): Remove "const" to avoid casting it away.

Index: apr/file_io/unix/tempdir.c
===================================================================
--- apr/file_io/unix/tempdir.c  (revision 65585)
+++ apr/file_io/unix/tempdir.c  (working copy)
@@ -23,9 +23,9 @@
 static int test_tempdir(const char *temp_dir, apr_pool_t *p)
 {
     apr_file_t *dummy_file;
-    const char *path = apr_pstrcat(p, temp_dir, "/apr-tmp.XXXXXX", NULL);
+    char *path = apr_pstrcat(p, temp_dir, "/apr-tmp.XXXXXX", NULL);
 
-    if (apr_file_mktemp(&dummy_file, (char *)path, 0, p) == APR_SUCCESS) {
+    if (apr_file_mktemp(&dummy_file, path, 0, p) == APR_SUCCESS) {
         if (apr_file_putc('!', dummy_file) == APR_SUCCESS) {
             if (apr_file_close(dummy_file) == APR_SUCCESS) {
                 return 1;

Reply via email to