From 740eee1cc6fb65a094e5f17e85aa37fdaa24f2e9 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 26 Aug 2010 12:13:51 +0200 Subject: [PATCH 1/1] Fix type that was not renamed and compiler warning --- src/intset.c | 2 +- src/t_set.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intset.c b/src/intset.c index 2b082b9e..2f359b7f 100644 --- a/src/intset.c +++ b/src/intset.c @@ -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 diff --git a/src/t_set.c b/src/t_set.c index 01c851ba..cb06a6a2 100644 --- a/src/t_set.c +++ b/src/t_set.c @@ -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) { -- 2.47.2