From: Brian Aker Date: Tue, 19 Aug 2008 18:00:13 +0000 (-0700) Subject: Few more cleanups. X-Git-Tag: _23~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6a0e41c00d8ef3e8814e3b82257694a5692b95c7;p=m6w6%2Flibmemcached Few more cleanups. --- diff --git a/clients/generator.c b/clients/generator.c index 793157ef..6a3b5103 100644 --- a/clients/generator.c +++ b/clients/generator.c @@ -21,7 +21,7 @@ static void get_random_string(char *buffer, size_t size) void pairs_free(pairs_st *pairs) { - unsigned int x; + uint32_t x; if (!pairs) return; @@ -36,7 +36,7 @@ void pairs_free(pairs_st *pairs) free(pairs); } -pairs_st *pairs_generate(unsigned long long number_of, size_t value_length) +pairs_st *pairs_generate(uint64_t number_of, size_t value_length) { unsigned int x; pairs_st *pairs; diff --git a/clients/generator.h b/clients/generator.h index c3fcab32..16509364 100644 --- a/clients/generator.h +++ b/clients/generator.h @@ -14,7 +14,7 @@ struct pairs_st { size_t value_length; }; -pairs_st *pairs_generate(unsigned long long number_of, size_t length); +pairs_st *pairs_generate(uint32_t number_of, size_t length); void pairs_free(pairs_st *pairs); #endif diff --git a/tests/test.h b/tests/test.h index 7c0e49da..77adaf53 100644 --- a/tests/test.h +++ b/tests/test.h @@ -16,7 +16,7 @@ typedef enum { TEST_SUCCESS= 0, /* Backwards compatibility */ TEST_FAILURE, TEST_MEMORY_ALLOCATION_FAILURE, - TEST_MAXIMUM_RETURN, /* Always add new error code before */ + TEST_MAXIMUM_RETURN /* Always add new error code before */ } test_return; struct test_st {