summaryrefslogtreecommitdiff
path: root/src/bitops.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-06-16 12:54:33 +0200
committerantirez <antirez@gmail.com>2016-06-16 12:54:33 +0200
commit2f2fd64c0db00b82e6c336d0ee9e19d50a3aad5f (patch)
tree7d9fa11445f5eab2ca7edd57860d6873f6a413d4 /src/bitops.c
parent33a9836fe32acffdf6fb34c8712e805d0986a956 (diff)
downloadredis-2f2fd64c0db00b82e6c336d0ee9e19d50a3aad5f.tar.gz
Minor aesthetic fixes to PR #3264.
Comment format fixed + local var modified from camel case to underscore separators as Redis code base normally does (camel case is mostly used for global symbols like structure names, function names, global vars, ...).
Diffstat (limited to 'src/bitops.c')
-rw-r--r--src/bitops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bitops.c b/src/bitops.c
index 9ae52c81b..302e811d2 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);