diff options
author | antirez <antirez@gmail.com> | 2015-07-27 09:41:48 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-07-27 14:37:58 +0200 |
commit | 32f80e2f1bf42d0508f1114a9dddd91c4719eb8e (patch) | |
tree | 66763c2803eb8a91c6b57e5e54e61d454888365c /src/rio.c | |
parent | 40eb548a80797b93cc733876654ff0978d7381cf (diff) | |
download | redis-32f80e2f1bf42d0508f1114a9dddd91c4719eb8e.tar.gz |
RDMF: More consistent define names.
Diffstat (limited to 'src/rio.c')
-rw-r--r-- | src/rio.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -81,7 +81,7 @@ static off_t rioBufferTell(rio *r) { /* Flushes any buffer to target device if applicable. Returns 1 on success * and 0 on failures. */ static int rioBufferFlush(rio *r) { - REDIS_NOTUSED(r); + UNUSED(r); return 1; /* Nothing to do, our write just appends to the buffer. */ } @@ -177,7 +177,7 @@ static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) { if (len) { r->io.fdset.buf = sdscatlen(r->io.fdset.buf,buf,len); len = 0; /* Prevent entering the while belove if we don't flush. */ - if (sdslen(r->io.fdset.buf) > REDIS_IOBUF_LEN) doflush = 1; + if (sdslen(r->io.fdset.buf) > PROTO_IOBUF_LEN) doflush = 1; } if (doflush) { @@ -232,9 +232,9 @@ static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) { /* Returns 1 or 0 for success/failure. */ static size_t rioFdsetRead(rio *r, void *buf, size_t len) { - REDIS_NOTUSED(r); - REDIS_NOTUSED(buf); - REDIS_NOTUSED(len); + UNUSED(r); + UNUSED(buf); + UNUSED(len); return 0; /* Error, this target does not support reading. */ } |