Use PRIu64 instead of %lld
authorTrond Norbye <trond.norbye@gmail.com>
Sun, 1 Aug 2010 21:12:16 +0000 (23:12 +0200)
committerTrond Norbye <trond.norbye@gmail.com>
Sun, 1 Aug 2010 21:12:16 +0000 (23:12 +0200)
libmemcached/protocol/ascii_handler.c

index 6f5102b00badaf36c87a6b60c7ffe4b76163b49e..87a0edb1b971c7de14d9f756a183329d11a78635 100644 (file)
@@ -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