X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ftest.c;h=78fe4a70ff8b284ee4db96e3256ef4eed46135bb;hb=acce29c292b435fef4fd486495dca7d653be2bf2;hp=47db82c733a2e43aec483f3e5fe28d281a570e28;hpb=1d7f999b7d38db3308a0533a83fea23987fb0178;p=awesomized%2Flibmemcached diff --git a/tests/test.c b/tests/test.c index 47db82c7..78fe4a70 100644 --- a/tests/test.c +++ b/tests/test.c @@ -14,13 +14,13 @@ #include "test.h" -long int timedif(struct timeval a, struct timeval b) +static long int timedif(struct timeval a, struct timeval b) { register int us, s; - us = a.tv_usec - b.tv_usec; + us = (int)(a.tv_usec - b.tv_usec); us /= 1000; - s = a.tv_sec - b.tv_sec; + s = (int)(a.tv_sec - b.tv_sec); s *= 1000; return s + us; } @@ -99,7 +99,6 @@ int main(int argc, char *argv[]) if (next->pre) { - memcached_return rc; rc= next->pre(memc); if (rc != MEMCACHED_SUCCESS)