projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge Trond
[m6w6/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index a5371fee64d8ab520672105933cf97b37b017297..78fe4a70ff8b284ee4db96e3256ef4eed46135bb 100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-18,9
+18,9
@@
static long int timedif(struct timeval a, struct timeval b)
{
register int us, s;
{
register int us, s;
- us =
a.tv_usec - b.tv_usec
;
+ us =
(int)(a.tv_usec - b.tv_usec)
;
us /= 1000;
us /= 1000;
- s =
a.tv_sec - b.tv_sec
;
+ s =
(int)(a.tv_sec - b.tv_sec)
;
s *= 1000;
return s + us;
}
s *= 1000;
return s + us;
}