projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixed binary mget so that it will always issue a NOOP after every
[awesomized/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index 49ae022a318341de3fd5e7e763512ea6d3c32b37..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;
}
@@
-99,7
+99,6
@@
int main(int argc, char *argv[])
if (next->pre)
{
if (next->pre)
{
- memcached_return rc;
rc= next->pre(memc);
if (rc != MEMCACHED_SUCCESS)
rc= next->pre(memc);
if (rc != MEMCACHED_SUCCESS)