From ae0c43a0e31fbf8b6f4dfbe0506dd3408ffee2f0 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sun, 23 Mar 2014 20:19:06 +0100 Subject: [PATCH] chat.c: fix format argument type Signed-off-by: Danny Al-Gaaf --- examples/chat/chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chat/chat.c b/examples/chat/chat.c index 9e96ad13..ad146183 100644 --- a/examples/chat/chat.c +++ b/examples/chat/chat.c @@ -105,7 +105,7 @@ static char *messages_to_json(long last_id) // messages (it may be too small if the ringbuffer is full and all // messages are large. in this case asserts will trigger). len += snprintf(buf + len, sizeof(buf) - len, - "{user: '%s', text: '%s', timestamp: %lu, id: %lu},", + "{user: '%s', text: '%s', timestamp: %lu, id: %ld},", message->user, message->text, message->timestamp, message->id); assert(len > 0); assert((size_t) len < sizeof(buf));