projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use prototypes and bools.
[open-adventure.git]
/
datime.c
diff --git
a/datime.c
b/datime.c
index b6a6b65a0cf9ff96bd7b8636e98abd18cd66d245..c0090e93eafdbc38cbcc7757cbbb68fc3a3bf29e 100644
(file)
--- a/
datime.c
+++ b/
datime.c
@@
-30,7
+30,7
@@
static int GOTX = 0, GOTY;
#define _TIME_
#include "time.h"
#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
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"
#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;
struct timeval now;
gettimeofday(&now, 0);
*X = now.tv_sec;