]> granicus.if.org Git - php/commitdiff
Fix some compiler warnings
authorBob Weinand <bobwei9@hotmail.com>
Thu, 23 Oct 2014 11:23:37 +0000 (13:23 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Thu, 23 Oct 2014 11:23:37 +0000 (13:23 +0200)
phpdbg_cmd.h
phpdbg_io.c

index e164691e591dcc5aa010377d876322831527b433..3896551c9a23b82d3efe606b9dea9c685c4488d7 100644 (file)
@@ -171,7 +171,7 @@ PHPDBG_API void phpdbg_param_debug(const phpdbg_param_t *param, const char *msg)
 
 #define PHPDBG_COMMAND_ARGS param TSRMLS_CC
 
-#define PHPDBG_END_COMMAND {NULL, 0, NULL, 0, '\0', NULL, NULL, '\0', NULL, 0}
+#define PHPDBG_END_COMMAND {NULL, 0, NULL, 0, '\0', NULL, NULL, NULL, NULL, 0}
 
 /*
 * Default Switch Case
index 019e1e8e1b87c31e4a08f4e746f8fa32671cc3d8..97f0356285c5fb81df56a4e99d02072e3196baf3 100644 (file)
 #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);