com php-src: Fix some compiler warnings: phpdbg_cmd.h php dbg_io.c
| From: | Bob Weinand | Date: | Thu, 23 Oct 2014 11:23:37 +0000 |
| Subject: | com php-src: Fix some compiler warnings: phpdbg_cmd.h php dbg_io.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82509@lists.php.net to get a copy of this message | ||
Commit: 28dcdb2d130d63d4aece862d96fa27c440397705
Author: Bob Weinand <bobwei9@hotmail.com> Thu, 23 Oct 2014 13:23:37 +0200
Parents: 6ee2dc47f3313c05d00fedfc49837622dacd6963
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=28dcdb2d130d63d4aece862d96fa27c440397705
Log:
Fix some compiler warnings
Changed paths:
M phpdbg_cmd.h
M phpdbg_io.c
Diff:
diff --git a/phpdbg_cmd.h b/phpdbg_cmd.h
index e164691..3896551 100644
--- a/phpdbg_cmd.h
+++ b/phpdbg_cmd.h
@@ -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
diff --git a/phpdbg_io.c b/phpdbg_io.c
index 019e1e8..97f0356 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);