summaryrefslogtreecommitdiff
path: root/src/rio.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-04-11 11:58:32 +0200
committerantirez <antirez@gmail.com>2012-04-11 11:58:32 +0200
commitc44ab51da1b784e126658250b0b345ed8a9e57b4 (patch)
tree7ca5b9b55a8be36ab30b0a3453f7110841c417a2 /src/rio.h
parentd98b03b791154e92238a91f72d83fe0b01495b08 (diff)
downloadredis-c44ab51da1b784e126658250b0b345ed8a9e57b4.tar.gz
Make inline functions rioRead/Write/Tell static. This fixes issue #447.
Diffstat (limited to 'src/rio.h')
-rw-r--r--src/rio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rio.h b/src/rio.h
index 9012856ff..8befe6676 100644
--- a/src/rio.h
+++ b/src/rio.h
@@ -39,12 +39,12 @@ typedef struct _rio rio;
* actual implementation of read / write / tell, and will update the checksum
* if needed. */
-inline size_t rioWrite(rio *r, const void *buf, size_t len) {
+static inline size_t rioWrite(rio *r, const void *buf, size_t len) {
if (r->update_cksum) r->update_cksum(r,buf,len);
return r->write(r,buf,len);
}
-inline size_t rioRead(rio *r, void *buf, size_t len) {
+static inline size_t rioRead(rio *r, void *buf, size_t len) {
if (r->read(r,buf,len) == 1) {
if (r->update_cksum) r->update_cksum(r,buf,len);
return 1;
@@ -52,7 +52,7 @@ inline size_t rioRead(rio *r, void *buf, size_t len) {
return 0;
}
-inline off_t rioTell(rio *r) {
+static inline off_t rioTell(rio *r) {
return r->tell(r);
}