summaryrefslogtreecommitdiff
path: root/phpdbg_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg_io.c')
-rw-r--r--phpdbg_io.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/phpdbg_io.c b/phpdbg_io.c
index 019e1e8e1b..97f0356285 100644
--- a/phpdbg_io.c
+++ b/phpdbg_io.c
@@ -41,16 +41,12 @@
#include <arpa/inet.h>
#endif
#include <netdb.h>
-
#include <fcntl.h>
-
#include <poll.h>
#endif
-
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
-
PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo TSRMLS_DC) {
int got_now, i = len, j;
char *p = ptr;
@@ -117,7 +113,7 @@ recv_once:
PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len) {
int sent, i = len;
- char *p = ptr;
+ const char *p = ptr;
/* XXX poll/select needed here? */
while(i > 0) {
sent = send(sock, p, i, 0);