From 60e85fb4f34a61c5a835f548dc868e20b49c4f1e Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 18 May 2010 17:13:21 +0200 Subject: new newline needed after commands --- example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example.c b/example.c index 05a0fa4..5ec85e3 100644 --- a/example.c +++ b/example.c @@ -20,12 +20,12 @@ int main(void) { freeReplyObject(reply); /* Set a key */ - reply = redisCommand(fd,"SET %s %s\n", "foo", "hello world"); + reply = redisCommand(fd,"SET %s %s", "foo", "hello world"); printf("SET: %s\n", reply->reply); freeReplyObject(reply); /* Set a key using binary safe API */ - reply = redisCommand(fd,"SET %b %b\n", "bar", 3, "hello", 5); + reply = redisCommand(fd,"SET %b %b", "bar", 3, "hello", 5); printf("SET (binary API): %s\n", reply->reply); freeReplyObject(reply); -- cgit v1.2.3