[xdebug-dev] xdebug xdebug/debugclient/main.c - Fixed gcc4 build issues.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 6 Apr 2006 19:40:22 +0200

Date: Thu Apr 6 19:40:22 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- Fixed gcc4 build issues.

Modified files:
           xdebug/debugclient/main.c (version: 1.33)

[FILE: /xdebug/debugclient/main.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- xdebug/debugclient/main.c:1.32 Sun Jan 01 14:27:27 2006 GMT
+++ xdebug/debugclient/main.c Thu Apr 06 15:40:21 2006 GMT
@@ -127,7 +127,7 @@
         int debug_once = 1; /* Whether to allow more than one debug session (1 = no) */
         struct sockaddr_in server_in;
         struct sockaddr_in client_in;
- int client_in_len;
+ socklen_t client_in_len;
         int fd; /* Filedescriptor for userinput */
         fd_buf cxt = { NULL, 0 };
         struct in_addr *iaddr;
@@ -135,9 +135,9 @@
         char *cmd; /* Command to send to the server */
         char *prev_cmd = NULL; /* Last send command to the server */
         int length; /* Length of read buffer */
-#ifndef WIN32
+#ifndef WIN32
         int opt; /* Current option during parameter parsing */
-#endif
+#endif
 
 #ifdef HAVE_LIBEDIT
         int num = 0;
@@ -256,7 +256,7 @@
 #ifdef HAVE_LIBEDIT
                                 /* Copy the prompt string */
                                 sprintf(prompt, "(cmd) ");
- if (((const char*) cmd = el_gets(el, &num)) != NULL && num != 0) {
+ if ((cmd = (char *) el_gets(el, &num)) != NULL && num != 0) {
                                         /* Add command to history */
 #ifdef XDC_OLD_LIBEDIT
                                         history(hist, H_ENTER, cmd);
Received on Thu Apr 06 2006 - 19:40:25 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST