From a6b4334cc16705c72da526a516f396a162cd8bfb Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Sun, 1 Aug 2010 23:12:16 +0200 Subject: [PATCH] Use PRIu64 instead of %lld --- libmemcached/protocol/ascii_handler.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libmemcached/protocol/ascii_handler.c b/libmemcached/protocol/ascii_handler.c index 6f5102b0..87a0edb1 100644 --- a/libmemcached/protocol/ascii_handler.c +++ b/libmemcached/protocol/ascii_handler.c @@ -146,8 +146,8 @@ ascii_get_response_handler(const void *cookie, if (client->ascii_command == GETS_CMD) { - snprintf(dest, sizeof(buffer) - used, " %u %u %llu\r\n", flags, - bodylen, (unsigned long long)cas); + snprintf(dest, sizeof(buffer) - used, " %u %u %" PRIu64 "\r\n", flags, + bodylen, cas); } else { @@ -440,8 +440,7 @@ static void process_arithmetic(memcached_protocol_client_st *client, if (rval == PROTOCOL_BINARY_RESPONSE_SUCCESS) { char buffer[80]; - snprintf(buffer, sizeof(buffer), "%llu\r\n", - (unsigned long long)result); + snprintf(buffer, sizeof(buffer), "%"PRIu64"\r\n", result); spool_string(client, buffer); } else -- 2.30.2