summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJon Parise <jon@php.net>2004-03-01 07:02:23 +0000
committerJon Parise <jon@php.net>2004-03-01 07:02:23 +0000
commit4db900732d3508612255051da5beb304f56d2175 (patch)
tree949a7c20519b2bf37cc0f50d049f854b9d8f8878 /main
parentd9d38900b6da98c96f4cbf05f7f3a461fe825d93 (diff)
downloadphp-git-4db900732d3508612255051da5beb304f56d2175.tar.gz
Cast the php_stream_dirent to a 'const char *' for estrndup() to avoid a
compiler warning.
Diffstat (limited to 'main')
-rwxr-xr-xmain/streams/streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c
index e3fe39d9c0..79f56f0cc4 100755
--- a/main/streams/streams.c
+++ b/main/streams/streams.c
@@ -1881,7 +1881,7 @@ PHPAPI int _php_stream_scandir(char *dirname, php_stream_dirent **namelist[], in
vector = (php_stream_dirent **) erealloc(vector, vector_size * sizeof(php_stream_dirent *));
}
- vector[nfiles++] = (php_stream_dirent*)estrndup(&sdp, sizeof(php_stream_dirent) + ((strlen(sdp.d_name) + 1) * sizeof(char)));
+ vector[nfiles++] = (php_stream_dirent*)estrndup((const char *)&sdp, sizeof(php_stream_dirent) + ((strlen(sdp.d_name) + 1) * sizeof(char)));
}
php_stream_closedir(stream);