diff --git a/src/games/mille/Makefile b/src/games/mille/Makefile index 509cf3f..2a7bccb 100644 --- a/src/games/mille/Makefile +++ b/src/games/mille/Makefile @@ -6,7 +6,7 @@ include $(TOPSRC)/target.mk #include $(TOPSRC)/cross.mk #CFLAGS = -O -DCROSS -Werror -Wall -#CFLAGS += -Werror -Wall +CFLAGS += -Werror -Wall OBJS = comp.o end.o extern.o init.o mille.o misc.o move.o print.o \ roll.o save.o types.o varpush.o diff --git a/src/games/mille/mille.c b/src/games/mille/mille.c index 4561d04..cdd1bf0 100644 --- a/src/games/mille/mille.c +++ b/src/games/mille/mille.c @@ -32,7 +32,7 @@ int ac; char *av[]; { bool restore; - double avs[3]; + unsigned avs[3]; if (strcmp(av[0], "a.out") == 0) { outf = fopen("q", "w"); @@ -41,8 +41,7 @@ char *av[]; { } restore = FALSE; - getloadavg(avs, 3); - if (avs[2] > 4.0) { + if (getloadavg(avs, 3) >= 0 && avs[2] > 400) { printf("Sorry. The load average is too high.\n"); printf("Please try again later\n"); exit(1);