diff options
author | antirez <antirez@gmail.com> | 2011-11-08 17:07:55 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-11-08 17:07:55 +0100 |
commit | c0ba9ebe13865189a3b21f7be8a910e349b59fda (patch) | |
tree | ca836b0d89cf04306b428b24dba552d574488e15 /src/t_set.c | |
parent | 71a50956b1ff6b45b8265afa8e7e0264c465cec8 (diff) | |
download | redis-c0ba9ebe13865189a3b21f7be8a910e349b59fda.tar.gz |
dict.c API names modified to be more coincise and consistent.
Diffstat (limited to 'src/t_set.c')
-rw-r--r-- | src/t_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_set.c b/src/t_set.c index db54ffe7a..3cf1cf005 100644 --- a/src/t_set.c +++ b/src/t_set.c @@ -115,7 +115,7 @@ int setTypeNext(setTypeIterator *si, robj **objele, int64_t *llele) { if (si->encoding == REDIS_ENCODING_HT) { dictEntry *de = dictNext(si->di); if (de == NULL) return -1; - *objele = dictGetEntryKey(de); + *objele = dictGetKey(de); } else if (si->encoding == REDIS_ENCODING_INTSET) { if (!intsetGet(si->subject->ptr,si->ii++,llele)) return -1; @@ -165,7 +165,7 @@ robj *setTypeNextObject(setTypeIterator *si) { int setTypeRandomElement(robj *setobj, robj **objele, int64_t *llele) { if (setobj->encoding == REDIS_ENCODING_HT) { dictEntry *de = dictGetRandomKey(setobj->ptr); - *objele = dictGetEntryKey(de); + *objele = dictGetKey(de); } else if (setobj->encoding == REDIS_ENCODING_INTSET) { *llele = intsetRandom(setobj->ptr); } else { |