mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 01:31:21 +00:00
Use const in Redis Module API where possible.
This commit is contained in:
@ -71,7 +71,7 @@ robj *listTypePop(robj *subject, int where) {
|
||||
return value;
|
||||
}
|
||||
|
||||
unsigned long listTypeLength(robj *subject) {
|
||||
unsigned long listTypeLength(const robj *subject) {
|
||||
if (subject->encoding == OBJ_ENCODING_QUICKLIST) {
|
||||
return quicklistCount(subject->ptr);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user