memset(&t, 0, sizeof(t));
gettimeofday(&t, NULL);
- *tx = t.tv_sec * 1000000 + t.tv_usec;
+ *tx = (tfc_useconds)t.tv_sec * 1000000 + t.tv_usec;
memset(&t, 0, sizeof(t));
}
off_t t;
t = lseek(fd, 0L, SEEK_CUR);
- if (t == -1) return NOFSIZE;
+ if (t == (off_t)-1) return NOFSIZE;
return (tfc_fsize)t;
}