X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=datime.c;h=c0090e93eafdbc38cbcc7757cbbb68fc3a3bf29e;hb=b38c11abefbb281b9ee50268241bc5bac4c4aaaa;hp=b6a6b65a0cf9ff96bd7b8636e98abd18cd66d245;hpb=c9e9b6457540d1feb7ccd7186ccffa57698dec57;p=open-adventure.git diff --git a/datime.c b/datime.c index b6a6b65..c0090e9 100644 --- a/datime.c +++ b/datime.c @@ -30,7 +30,7 @@ static int GOTX = 0, GOTY; #define _TIME_ #include "time.h" -fDATIME(X,Y)long *X, *Y; { +fDATIME(long *X,long *Y) { time(X); time(Y); *Y /= 2; /* it would be even better if the two numbers were totally @@ -41,7 +41,7 @@ fDATIME(X,Y)long *X, *Y; { #ifndef _TIME_ #include "sys/time.h" -void fDATIME(X,Y)long *X, *Y; { +void fDATIME(long *X, long *Y) { struct timeval now; gettimeofday(&now, 0); *X = now.tv_sec;