-More compiletime warning
-Some typo fixes
This commit is contained in:
parent
788724b4ff
commit
ebe5586abd
@ -1 +1 @@
|
|||||||
CFLAGS=-g -std=c99
|
CFLAGS=-g -std=c99 -Wall -pedantic
|
||||||
|
@ -23,7 +23,7 @@ errx(int eval, const char *fmt, ...) {
|
|||||||
exit(eval);
|
exit(eval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
void
|
||||||
net_server(int port) {
|
net_server(int port) {
|
||||||
struct sockaddr_in serveraddr;
|
struct sockaddr_in serveraddr;
|
||||||
serveraddr.sin_family = AF_INET;
|
serveraddr.sin_family = AF_INET;
|
||||||
@ -46,7 +46,7 @@ net_server(int port) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
void
|
||||||
net_poll() {
|
net_poll() {
|
||||||
int npoll;
|
int npoll;
|
||||||
npoll=poll(pollfds, SRV_FDS+MAX_CLIENTS, -1);
|
npoll=poll(pollfds, SRV_FDS+MAX_CLIENTS, -1);
|
||||||
@ -67,7 +67,7 @@ net_poll() {
|
|||||||
} else {
|
} else {
|
||||||
int i;
|
int i;
|
||||||
for (i=SRV_FDS; i<(SRV_FDS+MAX_CLIENTS); 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].fd=cfd;
|
||||||
pollfds[i].events=POLLIN|POLLERR|POLLHUP;
|
pollfds[i].events=POLLIN|POLLERR|POLLHUP;
|
||||||
nclients++;
|
nclients++;
|
||||||
|
@ -124,7 +124,7 @@ move(int side, int x, int y, int dir, int flags) {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
if (flags = F_SPLIT) {
|
if (flags & F_SPLIT) {
|
||||||
if (board[nx][ny].piece || (board[x][y].piece != OBELISK2))
|
if (board[nx][ny].piece || (board[x][y].piece != OBELISK2))
|
||||||
return 0;
|
return 0;
|
||||||
board[x][y].piece = OBELISK;
|
board[x][y].piece = OBELISK;
|
||||||
|
Reference in New Issue
Block a user