Projects/khet
Projects
/
khet
Archived
6
0
Fork 0

-More compiletime warning

-Some typo fixes
This commit is contained in:
Steinar Hamre 2008-10-03 19:56:51 +00:00
parent 788724b4ff
commit ebe5586abd
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
CFLAGS=-g -std=c99
CFLAGS=-g -std=c99 -Wall -pedantic

View File

@ -23,7 +23,7 @@ errx(int eval, const char *fmt, ...) {
exit(eval);
}
int
void
net_server(int port) {
struct sockaddr_in serveraddr;
serveraddr.sin_family = AF_INET;
@ -46,7 +46,7 @@ net_server(int port) {
}
int
void
net_poll() {
int npoll;
npoll=poll(pollfds, SRV_FDS+MAX_CLIENTS, -1);
@ -67,7 +67,7 @@ net_poll() {
} else {
int i;
for (i=SRV_FDS; i<(SRV_FDS+MAX_CLIENTS); i++)
if (pollfds[i].fd=-1) break;
if (pollfds[i].fd==-1) break;
pollfds[i].fd=cfd;
pollfds[i].events=POLLIN|POLLERR|POLLHUP;
nclients++;

View File

@ -124,7 +124,7 @@ move(int side, int x, int y, int dir, int flags) {
return 0;
if (flags = F_SPLIT) {
if (flags & F_SPLIT) {
if (board[nx][ny].piece || (board[x][y].piece != OBELISK2))
return 0;
board[x][y].piece = OBELISK;