projects
/
tfcrypt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix quiet mode and final reporting when using -O count.
[tfcrypt.git]
/
tfc_misc.c
diff --git
a/tfc_misc.c
b/tfc_misc.c
index 06c1a653e7d6a3ac23047288f6e7224e15b83789..3bfd214c1914163bf0019a4241e52eb11a035a8c 100644
(file)
--- a/
tfc_misc.c
+++ b/
tfc_misc.c
@@
-89,7
+89,7
@@
void tfc_getcurtime(tfc_useconds *tx)
memset(&t, 0, sizeof(t));
gettimeofday(&t, NULL);
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));
}
memset(&t, 0, sizeof(t));
}
@@
-135,7
+135,7
@@
tfc_fsize tfc_fdgetpos(int fd)
off_t t;
t = lseek(fd, 0L, SEEK_CUR);
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;
}
return (tfc_fsize)t;
}