summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-02-27 21:29:05 -0800
committerGitHub <noreply@github.com>2020-02-27 21:29:05 -0800
commit38675d23cc3bb45e2dfdeaed3a4a843f698731b3 (patch)
treec00fa09d41ee91d4d42fda4849963a3b175cc32d /README.md
parent3421ac30932eed6d49405dd9b1b7438adc85a68e (diff)
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)
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
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);