Some time_t/int conversions

This commit is contained in:
Michiel Broek
2005-10-16 12:13:20 +00:00
parent eef02cca1a
commit 52f0abaa13
8 changed files with 34 additions and 26 deletions

View File

@@ -39,7 +39,7 @@ callstat *getstatus(faddr *addr)
static callstat cst;
FILE *fp;
cst.trytime = 0L;
cst.trytime = 0;
cst.tryno = 0;
cst.trystat = 0;
@@ -82,7 +82,7 @@ void putstatus(faddr *addr, int incr, int sts)
if (sts != -1)
cst->trystat = sts;
cst->trytime = time(NULL) + j;
cst->trytime = (int)time(NULL) + j;
fwrite(cst, sizeof(callstat), 1, fp);
fclose(fp);

View File

@@ -5,7 +5,7 @@
typedef struct _callstat {
time_t trytime;
int trytime;
int tryno;
int trystat;
} callstat;