diff options
author | antirez <antirez@gmail.com> | 2012-04-11 11:58:32 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-04-11 11:58:32 +0200 |
commit | c44ab51da1b784e126658250b0b345ed8a9e57b4 (patch) | |
tree | 7ca5b9b55a8be36ab30b0a3453f7110841c417a2 /src/rio.h | |
parent | d98b03b791154e92238a91f72d83fe0b01495b08 (diff) | |
download | redis-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |