diff options
author | antirez <antirez@gmail.com> | 2010-05-18 17:13:21 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-05-18 17:13:21 +0200 |
commit | 60e85fb4f34a61c5a835f548dc868e20b49c4f1e (patch) | |
tree | c9b0309c84a95bde04f06ba717293893ad344245 | |
parent | 4f6fc6dfb13ba65a88b3976814f41f5f5ce24dc0 (diff) |
new newline needed after commands
-rw-r--r-- | example.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |