From: Brian Aker Date: Mon, 21 Dec 2009 07:10:49 +0000 (-0800) Subject: ICC fixes. X-Git-Tag: 0.37~42 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c859868660e37e0e6c1ed168c0b063652e0ea9bd;p=awesomized%2Flibmemcached ICC fixes. --- diff --git a/clients/utilities.c b/clients/utilities.c index 0c286b70..5d761e3c 100644 --- a/clients/utilities.c +++ b/clients/utilities.c @@ -18,7 +18,7 @@ long int timedif(struct timeval a, struct timeval b) { - register int us, s; + long us, s; us = (int)(a.tv_usec - b.tv_usec); us /= 1000; @@ -29,7 +29,7 @@ long int timedif(struct timeval a, struct timeval b) void version_command(const char *command_name) { - printf("%s v%u.%u\n", command_name, 1, 0); + printf("%s v%u.%u\n", command_name, 1U, 0U); exit(0); } @@ -71,7 +71,7 @@ void help_command(const char *command_name, const char *description, { unsigned int x; - printf("%s v%u.%u\n\n", command_name, 1, 0); + printf("%s v%u.%u\n\n", command_name, 1U, 0U); printf("\t%s\n\n", description); printf("Current options. A '=' means the option takes a value.\n\n"); diff --git a/tests/test.c b/tests/test.c index 653cc731..fb501fad 100644 --- a/tests/test.c +++ b/tests/test.c @@ -32,7 +32,7 @@ static void world_stats_print(world_stats_st *stats) static long int timedif(struct timeval a, struct timeval b) { - register int us, s; + long us, s; us = (int)(a.tv_usec - b.tv_usec); us /= 1000;