Use prototypes and bools.

This commit is contained in:
Eric S. Raymond 2017-05-18 09:06:32 -04:00
parent c9e9b64575
commit b38c11abef
7 changed files with 22 additions and 25 deletions

View file

@ -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;