Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 146153
Collapse All | Expand All

(-)Maelstrom-3.0.6/screenlib/SDL_FrameBuf.cpp (-4 / +1 lines)
Lines 847-856 Link Here
847
			/* Update the dirty rectangle map with the new list */
847
			/* Update the dirty rectangle map with the new list */
848
			for ( i=0; i<dirtymaplen; ++i ) {
848
			for ( i=0; i<dirtymaplen; ++i ) {
849
				if ( dirtymap[i] != NULL ) {
849
				if ( dirtymap[i] != NULL ) {
850
					dirtymap[i] = (SDL_Rect *)(
850
					dirtymap[i] = newlist + (dirtymap[i]-updatelist);
851
					((int)dirtymap[i]-(int)updatelist) +
852
								(int)newlist
853
					);
854
				}
851
				}
855
			}
852
			}
856
			delete[] updatelist;
853
			delete[] updatelist;
(-)Maelstrom-3.0.6/Maelstrom-netd.c (-1 / +3 lines)
Lines 2-7 Link Here
2
/* Here we go... */
2
/* Here we go... */
3
3
4
#include <stdio.h>
4
#include <stdio.h>
5
#include <stdlib.h>
5
#include <string.h>
6
#include <string.h>
6
#include <signal.h>
7
#include <signal.h>
7
#include <errno.h>
8
#include <errno.h>
Lines 9-14 Link Here
9
#include <sys/time.h>
10
#include <sys/time.h>
10
#include <sys/socket.h>
11
#include <sys/socket.h>
11
#include <netinet/in.h>
12
#include <netinet/in.h>
13
#include <arpa/inet.h>
12
#include <netdb.h>
14
#include <netdb.h>
13
#include <unistd.h>
15
#include <unistd.h>
14
16
Lines 154-160 Link Here
154
		for ( i=0; i<numplayers; ++i ) {
156
		for ( i=0; i<numplayers; ++i ) {
155
			connection *player = &players[positions[i]];
157
			connection *player = &players[positions[i]];
156
158
157
			strcpy(ptr, (char *)inet_ntoa(player->raddr.sin_addr));
159
			strcpy(ptr, inet_ntoa(player->raddr.sin_addr));
158
printf("Setting up player %d at host %s and port ", i+1, ptr);
160
printf("Setting up player %d at host %s and port ", i+1, ptr);
159
			len += strlen(ptr)+1;
161
			len += strlen(ptr)+1;
160
			ptr += strlen(ptr)+1;
162
			ptr += strlen(ptr)+1;

Return to bug 146153