summaryrefslogtreecommitdiff
path: root/main/network.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-03-15 13:25:38 +0000
committerWez Furlong <wez@php.net>2003-03-15 13:25:38 +0000
commit37aafafc7d3ddde0b1949def3176c9e0cca09b9e (patch)
tree205e81cc2161c70c91c5e3fb35adbfa8986dd470 /main/network.c
parentc4db6427f4bb5a92e61f2a4f7523720ad1d4e283 (diff)
downloadphp-git-37aafafc7d3ddde0b1949def3176c9e0cca09b9e.tar.gz
64 bit fixes
Diffstat (limited to 'main/network.c')
-rw-r--r--main/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/network.c b/main/network.c
index a1edd016a0..5084fbd14c 100644
--- a/main/network.c
+++ b/main/network.c
@@ -1081,7 +1081,7 @@ static int php_sockop_cast(php_stream *stream, int castas, void **ret TSRMLS_DC)
return FAILURE;
#endif
if (ret) {
- *ret = fdopen(sock->socket, stream->mode);
+ *(FILE**)ret = fdopen(sock->socket, stream->mode);
if (*ret)
return SUCCESS;
return FAILURE;
@@ -1094,7 +1094,7 @@ static int php_sockop_cast(php_stream *stream, int castas, void **ret TSRMLS_DC)
return FAILURE;
#endif
if (ret)
- *ret = (void*)sock->socket;
+ *(int*)ret = sock->socket;
return SUCCESS;
default:
return FAILURE;