[mw-devel] MW3 r1139 - trunk/src

arthur at sucs.org arthur at sucs.org
Wed Dec 16 11:10:17 GMT 2009


Author: arthur
Date: 2009-12-16 11:10:17 +0000 (Wed, 16 Dec 2009)
New Revision: 1139

Modified:
   trunk/src/sizes.c
Log:
fix warnings


Modified: trunk/src/sizes.c
===================================================================
--- trunk/src/sizes.c	2009-12-16 11:10:07 UTC (rev 1138)
+++ trunk/src/sizes.c	2009-12-16 11:10:17 UTC (rev 1139)
@@ -1,4 +1,5 @@
 #include "bb.h"
+#include <string.h>
 
 void addmap(char *map, char *name, char key, 
 		unsigned long size, void * offset, void * base)
@@ -49,7 +50,7 @@
 	addmap(map, "doing",  'd', sizeof(pp.doing), &pp.doing, &pp );
 	addmap(map, "dowhen",  'w', sizeof(pp.dowhen), &pp.dowhen, &pp );
 	addmap(map, "timeout",  'T', sizeof(pp.timeout), &pp.timeout, &pp );
-	addmap(map, "spare",  'p', sizeof(pp.spare), &pp.spare, &pp );
+	addmap(map, "spare",  '_', sizeof(pp.spare), &pp.spare, &pp );
 	addmap(map, "colour",  'c', sizeof(pp.colour), &pp.colour, &pp );
 	addmap(map, "room",  'r', sizeof(pp.room), &pp.room, &pp );
 	addmap(map, "chatprivs",  'C', sizeof(pp.chatprivs), &pp.chatprivs, &pp );
@@ -71,7 +72,7 @@
 	addmap(map, "size",   'z', sizeof(hh.size), &hh.size, &hh );
 	addmap(map, "status", 's', sizeof(hh.status), &hh.status, &hh );
 	addmap(map, "replyto", 'r', sizeof(hh.replyto), &hh.replyto, &hh );
-	addmap(map, "spare", 'x', sizeof(hh.spare), &hh.spare, &hh );
+	addmap(map, "spare", '_', sizeof(hh.spare), &hh.spare, &hh );
 	showmap(map,sizeof(struct Header));
 	printf("\n");
 	free(map);
@@ -87,7 +88,7 @@
 	addmap(map, "last",  'l', sizeof(ff.last), &ff.last, &ff );
 	addmap(map, "g_status",  'g', sizeof(ff.g_status), &ff.g_status, &ff );
 	addmap(map, "groups",  'r', sizeof(ff.groups), &ff.groups, &ff );
-	addmap(map, "spare",  'x', sizeof(ff.spare), &ff.spare, &ff );
+	addmap(map, "spare",  '_', sizeof(ff.spare), &ff.spare, &ff );
 	showmap(map,sizeof(struct folder));
 	printf("\n");
 	free(map);




More information about the mw-devel mailing list