From 38675d23cc3bb45e2dfdeaed3a4a843f698731b3 Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Thu, 27 Feb 2020 21:29:05 -0800 Subject: Housekeeping fixes (#764) Housekeeping * Check for C++ (#758, #750) * Include `alloc.h` in `make install` and `cmake` * Add a `.def` file for Windows (#760) * Include allocation wrappers referenced in adapter headers * Fix minor syntax errors and typos in README * Fix CI in Windows by properly escaping arguments (#761) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 6095cec..a7c46ba 100644 --- a/README.md +++ b/README.md @@ -205,16 +205,16 @@ a single call to `read(2)`): redisReply *reply; redisAppendCommand(context,"SET foo bar"); redisAppendCommand(context,"GET foo"); -redisGetReply(context,&reply); // reply for SET +redisGetReply(context,(void *)&reply); // reply for SET freeReplyObject(reply); -redisGetReply(context,&reply); // reply for GET +redisGetReply(context,(void *)&reply); // reply for GET freeReplyObject(reply); ``` This API can also be used to implement a blocking subscriber: ```c reply = redisCommand(context,"SUBSCRIBE foo"); freeReplyObject(reply); -while(redisGetReply(context,&reply) == REDIS_OK) { +while(redisGetReply(context,(void *)&reply) == REDIS_OK) { // consume message freeReplyObject(reply); } @@ -432,7 +432,7 @@ SSL can only be enabled on a `redisContext` connection after the connection has been established and before any command has been processed. For example: ```c -c = redisConnect('localhost', 6443); +c = redisConnect("localhost", 6443); if (c == NULL || c->err) { /* Handle error and abort... */ } @@ -440,7 +440,7 @@ if (c == NULL || c->err) { if (redisSecureConnection(c, "cacertbundle.crt", /* File name of trusted CA/ca bundle file */ "client_cert.pem", /* File name of client certificate file */ - "client_key.pem", /* File name of client privat ekey */ + "client_key.pem", /* File name of client private key */ "redis.mydomain.com" /* Server name to request (SNI) */ ) != REDIS_OK) { printf("SSL error: %s\n", c->errstr); -- cgit v1.2.3