]> git.saurik.com Git - redis.git/commitdiff
Fix type that was not renamed and compiler warning
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 26 Aug 2010 10:13:51 +0000 (12:13 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 26 Aug 2010 10:13:51 +0000 (12:13 +0200)
src/intset.c
src/t_set.c

index 2b082b9e7b6121a49443e067c598ddbbdd1d449e..2f359b7ffa249ad2c1c4c557c6986b38c909a7e7 100644 (file)
@@ -151,7 +151,7 @@ static void intsetMoveTail(intset *is, uint32_t from, uint32_t to) {
 /* Insert an integer in the intset */
 intset *intsetAdd(intset *is, int64_t value, uint8_t *success) {
     uint8_t valenc = _intsetValueEncoding(value);
-    uint32_t pos, offset;
+    uint32_t pos;
     if (success) *success = 1;
 
     /* Upgrade encoding if necessary. If we need to upgrade, we know that
index 01c851ba9ffe2c6d239ede95bf01a94509748d12..cb06a6a2e9ee43ba4189189da4107b341350ce83 100644 (file)
@@ -81,7 +81,7 @@ int setTypeIsMember(robj *subject, robj *value) {
 }
 
 setTypeIterator *setTypeInitIterator(robj *subject) {
-    setTypeIterator *si = zmalloc(sizeof(setIterator));
+    setTypeIterator *si = zmalloc(sizeof(setTypeIterator));
     si->subject = subject;
     si->encoding = subject->encoding;
     if (si->encoding == REDIS_ENCODING_HT) {