Skip to content

Commit

Permalink
Merge pull request #4 from twitter/swaisbrot/fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
Yao Yue committed Oct 31, 2015
2 parents 33c843e + d78627e commit a11e027
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/protocol/memcache/compose.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ compose_req(struct buf **buf, struct request *req)
struct bstring *key = req->keys->data;
int noreply_len = req->noreply * NOREPLY_LEN;
int cas_len = (req->type == REQ_CAS) ? CC_UINT64_MAXLEN : 0;
int i, sz, n = 0;
uint32_t i;
int sz, n = 0;

switch (type) {
case REQ_STATS:
Expand Down
3 changes: 2 additions & 1 deletion src/protocol/memcache/klog.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ static inline void
_klog_write_get(struct request *req, struct response *rsp, char *buf, int len)
{
struct response *nr = rsp;
int i, suffix_len;
int suffix_len;
uint32_t i;
struct bstring *key;

for (i = 0; i < array_nelem(req->keys); ++i) {
Expand Down
4 changes: 2 additions & 2 deletions src/slimcache/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ _process_get(struct response *rsp, struct request *req)
{
struct bstring *key;
struct response *r = rsp;
int i;
uint32_t i;

INCR(process_metrics, get);
/* use chained responses, move to the next response if key is found. */
Expand Down Expand Up @@ -109,7 +109,7 @@ _process_gets(struct response *rsp, struct request *req)
{
struct bstring *key;
struct response *r = rsp;
int i;
uint32_t i;

INCR(process_metrics, gets);
/* use chained responses, move to the next response if key is found. */
Expand Down
4 changes: 2 additions & 2 deletions src/twemcache/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ _process_get(struct response *rsp, struct request *req)
{
struct bstring *key;
struct response *r = rsp;
int i;
uint32_t i;

INCR(process_metrics, get);
/* use chained responses, move to the next response if key is found. */
Expand Down Expand Up @@ -104,7 +104,7 @@ _process_gets(struct response *rsp, struct request *req)
{
struct bstring *key;
struct response *r = rsp;
int i;
uint32_t i;

INCR(process_metrics, gets);
/* use chained responses, move to the next response if key is found. */
Expand Down

0 comments on commit a11e027

Please sign in to comment.