From: Brian Aker Date: Fri, 14 Dec 2007 08:13:03 +0000 (-0800) Subject: Fixed uint16_t issues X-Git-Tag: 0.13~31 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4c269c98f4b92850758184713a305679dffb60d3;p=awesomized%2Flibmemcached Fixed uint16_t issues --- diff --git a/src/execute.c b/src/execute.c index c3d41027..69b106d2 100644 --- a/src/execute.c +++ b/src/execute.c @@ -42,7 +42,7 @@ unsigned int execute_get(memcached_st *memc, pairs_st *pairs, unsigned int numbe { char *value; size_t value_length; - uint16_t flags; + uint32_t flags; unsigned int fetch_key; fetch_key= random() % number_of; diff --git a/src/memcat.c b/src/memcat.c index 1ee02427..79dc6220 100644 --- a/src/memcat.c +++ b/src/memcat.c @@ -23,7 +23,7 @@ int main(int argc, char *argv[]) memcached_st *memc; char *string; size_t string_length; - uint16_t flags; + uint32_t flags; memcached_return rc; memcached_server_st *servers; diff --git a/src/memcp.c b/src/memcp.c index 09d7e911..f1054ea9 100644 --- a/src/memcp.c +++ b/src/memcp.c @@ -25,7 +25,7 @@ void options_parse(int argc, char *argv[]); static int opt_verbose= 0; static char *opt_servers= NULL; static int opt_method= OPT_SET; -static uint16_t opt_flags= 0; +static uint32_t opt_flags= 0; static time_t opt_expires= 0; int main(int argc, char *argv[]) @@ -187,7 +187,7 @@ void options_parse(int argc, char *argv[]) opt_servers= strdup(optarg); break; case OPT_FLAG: /* --flag */ - opt_flags= (uint16_t)strtol(optarg, (char **)NULL, 16); + opt_flags= (uint32_t)strtol(optarg, (char **)NULL, 16); break; case OPT_EXPIRE: /* --expire */ opt_expires= (time_t)strtoll(optarg, (char **)NULL, 10);