Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@users.noreply.github.com>2020-05-19 04:11:40 +0300
committerGitHub <noreply@github.com>2020-05-19 04:11:40 +0300
commite80600e244b8442cb7c86e99b067966cd59bf2ee (patch)
treeeb6f7a91da7ad74602e1812267514c66287d460b /library.c
parent508fef6f18c8ee7e57ff6fc45697248c0bd72709 (diff)
Issue #548 (#1649)
Adds `Redis::SCAN_PREFIX` and `Redis::SCAN_NOPREFIX` as options to SCAN. See #548
Diffstat (limited to 'library.c')
-rw-r--r--library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/library.c b/library.c
index 565e1cb3..a67f79bb 100644
--- a/library.c
+++ b/library.c
@@ -722,7 +722,7 @@ int
redis_cmd_append_sstr_dbl(smart_string *str, double value)
{
char tmp[64];
- int len, retval;
+ int len;
/* Convert to string */
len = snprintf(tmp, sizeof(tmp), "%.16g", value);
@@ -1785,7 +1785,7 @@ redis_sock_create(char *host, int host_len, int port,
redis_sock->err = NULL;
- redis_sock->scan = REDIS_SCAN_NORETRY;
+ redis_sock->scan = 0;
redis_sock->readonly = 0;
redis_sock->tcp_keepalive = 0;