Fixed warning in mille.
This commit is contained in:
@@ -6,7 +6,7 @@ include $(TOPSRC)/target.mk
|
|||||||
#include $(TOPSRC)/cross.mk
|
#include $(TOPSRC)/cross.mk
|
||||||
#CFLAGS = -O -DCROSS -Werror -Wall
|
#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 \
|
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
|
roll.o save.o types.o varpush.o
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ int ac;
|
|||||||
char *av[]; {
|
char *av[]; {
|
||||||
|
|
||||||
bool restore;
|
bool restore;
|
||||||
double avs[3];
|
unsigned avs[3];
|
||||||
|
|
||||||
if (strcmp(av[0], "a.out") == 0) {
|
if (strcmp(av[0], "a.out") == 0) {
|
||||||
outf = fopen("q", "w");
|
outf = fopen("q", "w");
|
||||||
@@ -41,8 +41,7 @@ char *av[]; {
|
|||||||
}
|
}
|
||||||
restore = FALSE;
|
restore = FALSE;
|
||||||
|
|
||||||
getloadavg(avs, 3);
|
if (getloadavg(avs, 3) >= 0 && avs[2] > 400) {
|
||||||
if (avs[2] > 4.0) {
|
|
||||||
printf("Sorry. The load average is too high.\n");
|
printf("Sorry. The load average is too high.\n");
|
||||||
printf("Please try again later\n");
|
printf("Please try again later\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user