From: Trond Norbye Date: Sun, 1 Aug 2010 21:12:16 +0000 (+0200) Subject: Use PRIu64 instead of %lld X-Git-Tag: 0.44~7^2~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a6b4334cc16705c72da526a516f396a162cd8bfb;p=m6w6%2Flibmemcached Use PRIu64 instead of %lld --- 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