diff --git a/src/bitops.c b/src/bitops.c index 9ae52c81..302e811d 100644 --- a/src/bitops.c +++ b/src/bitops.c @@ -907,7 +907,7 @@ void bitfieldCommand(client *c) { struct bitfieldOp *ops = NULL; /* Array of ops to execute at end. */ int owtype = BFOVERFLOW_WRAP; /* Overflow type. */ int readonly = 1; - long highestWriteOffset = 0; + long higest_write_offset = 0; for (j = 2; j < c->argc; j++) { int remargs = c->argc-j-1; /* Remaining args other than current. */ @@ -957,7 +957,7 @@ void bitfieldCommand(client *c) { if (opcode != BITFIELDOP_GET) { readonly = 0; - highestWriteOffset = bitoffset + bits - 1; + higest_write_offset = bitoffset + bits - 1; /* INCRBY and SET require another argument. */ if (getLongLongFromObjectOrReply(c,c->argv[j+3],&i64,NULL) != C_OK){ zfree(ops); @@ -979,15 +979,15 @@ void bitfieldCommand(client *c) { } if (readonly) { - /* Lookup for read is ok if key doesn't exit, but errors - * if it's not a string*/ + /* Lookup for read is ok if key doesn't exit, but errors + * if it's not a string. */ o = lookupKeyRead(c->db,c->argv[1]); if (o != NULL && checkType(c,o,OBJ_STRING)) return; } else { /* Lookup by making room up to the farest bit reached by * this operation. */ if ((o = lookupStringForBitCommand(c, - highestWriteOffset)) == NULL) return; + higest_write_offset)) == NULL) return; } addReplyMultiBulkLen(c,numops);