summaryrefslogtreecommitdiff
path: root/src/rio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rio.c')
-rw-r--r--src/rio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rio.c b/src/rio.c
index 329c887a4..37b2b0375 100644
--- a/src/rio.c
+++ b/src/rio.c
@@ -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. */
}