From c859868660e37e0e6c1ed168c0b063652e0ea9bd Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 20 Dec 2009 23:10:49 -0800 Subject: [PATCH] ICC fixes. --- clients/utilities.c | 6 +++--- tests/test.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.30.2