From: Padraig O'Sullivan Date: Sat, 18 Jul 2009 17:10:56 +0000 (-0400) Subject: Build fixes for the memcached_flush.c file. X-Git-Tag: 0.32~7^2^2~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6398f2c741d3571c9e792143017dcfec28d1c7df;p=awesomized%2Flibmemcached Build fixes for the memcached_flush.c file. --- diff --git a/libmemcached/memcached_flush.c b/libmemcached/memcached_flush.c index 55a6ca71..1011b3f1 100644 --- a/libmemcached/memcached_flush.c +++ b/libmemcached/memcached_flush.c @@ -33,12 +33,12 @@ static memcached_return memcached_flush_textual(memcached_st *ptr, { bool no_reply= (ptr->flags & MEM_NOREPLY); if (expiration) - send_length= snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, - "flush_all %llu%s\r\n", - (unsigned long long)expiration, no_reply ? " noreply" : ""); + send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, + "flush_all %llu%s\r\n", + (unsigned long long)expiration, no_reply ? " noreply" : ""); else - send_length= snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, - "flush_all%s\r\n", no_reply ? " noreply" : ""); + send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, + "flush_all%s\r\n", no_reply ? " noreply" : ""); rc= memcached_do(&ptr->hosts[x], buffer, send_length, 1); @@ -63,7 +63,7 @@ static memcached_return memcached_flush_binary(memcached_st *ptr, request.message.header.request.extlen= 4; request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES; request.message.header.request.bodylen= htonl(request.message.header.request.extlen); - request.message.body.expiration= htonl(expiration); + request.message.body.expiration= htonl((uint32_t) expiration); for (x= 0; x < ptr->number_of_hosts; x++) {