X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ftest.c;h=78fe4a70ff8b284ee4db96e3256ef4eed46135bb;hb=12a14e855f71e817bd85a6cc65a8e7c124b3c2ff;hp=998b25f1158e32b2d5b4884cbcf512ba065e9587;hpb=fb6f24da772d54e4ce975e9c7745382ede1d5cb9;p=awesomized%2Flibmemcached diff --git a/tests/test.c b/tests/test.c index 998b25f1..78fe4a70 100644 --- a/tests/test.c +++ b/tests/test.c @@ -2,7 +2,6 @@ Sample test application. */ #include -#include #include #include #include @@ -15,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; } @@ -100,7 +99,6 @@ int main(int argc, char *argv[]) if (next->pre) { - memcached_return rc; rc= next->pre(memc); if (rc != MEMCACHED_SUCCESS)