summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example-libevent-ssl.c2
-rw-r--r--examples/example-push.c4
-rw-r--r--examples/example-redictmoduleapi.c1
-rw-r--r--examples/example-ssl.c4
-rw-r--r--examples/example.c4
5 files changed, 7 insertions, 8 deletions
diff --git a/examples/example-libevent-ssl.c b/examples/example-libevent-ssl.c
index b2c6b56..a142b22 100644
--- a/examples/example-libevent-ssl.c
+++ b/examples/example-libevent-ssl.c
@@ -69,7 +69,7 @@ int main (int argc, char **argv) {
ssl = redisCreateSSLContext(caCert, NULL,
cert, certKey, NULL, &ssl_error);
if (!ssl) {
- printf("Error: %s\n", redisSSLContextGetError(ssl_error));
+ printf("Error: %s\n", redictSSLContextGetError(ssl_error));
return 1;
}
diff --git a/examples/example-push.c b/examples/example-push.c
index a00422f..ce28c38 100644
--- a/examples/example-push.c
+++ b/examples/example-push.c
@@ -25,7 +25,7 @@ static void assertReplyAndFree(redisContext *context, redisReply *reply, int typ
if (reply->type != type) {
if (reply->type == REDIS_REPLY_ERROR)
- fprintf(stderr, "Redis Error: %s\n", reply->str);
+ fprintf(stderr, "Redict Error: %s\n", reply->str);
panicAbort("Expected reply type %d but got type %d", type, reply->type);
}
@@ -42,7 +42,7 @@ static void enableClientTracking(redisContext *c) {
if (reply->type != REDIS_REPLY_MAP) {
fprintf(stderr, "Error: Can't send HELLO 3 command. Are you sure you're ");
- fprintf(stderr, "connected to redis-server >= 6.0.0?\nRedis error: %s\n",
+ fprintf(stderr, "connected to redict-server >= 6.0.0?\nRedict error: %s\n",
reply->type == REDIS_REPLY_ERROR ? reply->str : "(unknown)");
exit(-1);
}
diff --git a/examples/example-redictmoduleapi.c b/examples/example-redictmoduleapi.c
index c95546c..f929ffc 100644
--- a/examples/example-redictmoduleapi.c
+++ b/examples/example-redictmoduleapi.c
@@ -74,7 +74,6 @@ int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
}
if (redisModuleCompatibilityCheck() != REDIS_OK) {
- printf("Redis 7.0 or above is required! \n");
return REDISMODULE_ERR;
}
diff --git a/examples/example-ssl.c b/examples/example-ssl.c
index 1654f5d..ac3dfb8 100644
--- a/examples/example-ssl.c
+++ b/examples/example-ssl.c
@@ -34,7 +34,7 @@ int main(int argc, char **argv) {
redisInitOpenSSL();
ssl = redisCreateSSLContext(ca, NULL, cert, key, NULL, &ssl_error);
if (!ssl || ssl_error != REDIS_SSL_CTX_NONE) {
- printf("SSL Context error: %s\n", redisSSLContextGetError(ssl_error));
+ printf("SSL Context error: %s\n", redictSSLContextGetError(ssl_error));
exit(1);
}
@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
printf("Connection error: %s\n", c->errstr);
redisFree(c);
} else {
- printf("Connection error: can't allocate redis context\n");
+ printf("Connection error: can't allocate redict context\n");
}
exit(1);
}
diff --git a/examples/example.c b/examples/example.c
index a87e5cf..41c8189 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -42,7 +42,7 @@ static void example_argv_command(redisContext *c, size_t n) {
reply = redisCommandArgv(c, n + 2, (const char **)argv, (const size_t*)argvlen);
if (reply == NULL || c->err) {
- fprintf(stderr, "Error: Couldn't execute redisCommandArgv\n");
+ fprintf(stderr, "Error: Couldn't execute redictCommandArgv\n");
exit(1);
}
@@ -88,7 +88,7 @@ int main(int argc, char **argv) {
printf("Connection error: %s\n", c->errstr);
redisFree(c);
} else {
- printf("Connection error: can't allocate redis context\n");
+ printf("Connection error: can't allocate redict context\n");
}
exit(1);
}