From 725546980cb61f03a5c3fd71c611a7d5c7b972e6 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Thu, 15 Jul 2010 20:30:57 -0700 Subject: [PATCH] Tiny style fix --- tests/server.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/server.c b/tests/server.c index 543d5bac..58a9d276 100644 --- a/tests/server.c +++ b/tests/server.c @@ -30,8 +30,6 @@ void server_startup(server_startup_st *construct) { - unsigned int x; - if ((construct->server_list= getenv("MEMCACHED_SERVERS"))) { printf("servers %s\n", construct->server_list); @@ -46,7 +44,7 @@ void server_startup(server_startup_st *construct) char *end_ptr; end_ptr= server_string_buffer; - for (x= 0; x < construct->count; x++) + for (uint32_t x= 0; x < construct->count; x++) { char buffer[1024]; /* Nothing special for number */ int count; @@ -105,7 +103,7 @@ void server_startup(server_startup_st *construct) srandom((unsigned int)time(NULL)); - for (x= 0; x < memcached_server_list_count(construct->servers); x++) + for (uint32_t x= 0; x < memcached_server_list_count(construct->servers); x++) { printf("\t%s : %d\n", memcached_server_name(&construct->servers[x]), memcached_server_port(&construct->servers[x])); assert(construct->servers[x].fd == -1); @@ -117,11 +115,9 @@ void server_startup(server_startup_st *construct) void server_shutdown(server_startup_st *construct) { - unsigned int x; - if (construct->server_list) { - for (x= 0; x < construct->count; x++) + for (uint32_t x= 0; x < construct->count; x++) { char buffer[1024]; /* Nothing special for number */ sprintf(buffer, "cat /tmp/%umemc.pid | xargs kill", x); -- 2.30.2