[mw-devel] MW3 r1275 - trunk/src

arthur at sucs.org arthur at sucs.org
Tue Nov 6 16:34:35 GMT 2012


Author: arthur
Date: 2012-11-06 16:34:35 +0000 (Tue, 06 Nov 2012)
New Revision: 1275

Modified:
   trunk/src/ipc.c
   trunk/src/socket.c
Log:
fix bad extern declaration


Modified: trunk/src/ipc.c
===================================================================
--- trunk/src/ipc.c	2012-11-06 16:00:19 UTC (rev 1274)
+++ trunk/src/ipc.c	2012-11-06 16:34:35 UTC (rev 1275)
@@ -18,7 +18,7 @@
 ipc_connection_t * ipcsock = NULL;
 char *ipc_parent = NULL;
 
-extern long userposn;
+extern int32_t userposn;
 
 void ipc_connect(const char *target)
 {

Modified: trunk/src/socket.c
===================================================================
--- trunk/src/socket.c	2012-11-06 16:00:19 UTC (rev 1274)
+++ trunk/src/socket.c	2012-11-06 16:34:35 UTC (rev 1275)
@@ -60,8 +60,8 @@
 	iov[0].iov_base = &msg->head;
 	iov[0].iov_len = sizeof(msg->head);
 	iovused++;
+	msg->head.len = msg->bodylen;
 	if (msg->bodylen > 0) {
-		msg->head.len = msg->bodylen;
 		iov[1].iov_base = msg->body;
 		iov[1].iov_len = msg->bodylen;
 		iovused++;




More information about the mw-devel mailing list