From: oetiker Date: Sat, 6 Sep 2008 08:58:18 +0000 (+0000) Subject: inline functions are not supported in c99 ... lets remove this. X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=b5982674ca6703df1ba19dfd18409081e946f0e9 inline functions are not supported in c99 ... lets remove this. the compiler will foture it out if they are important. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1478 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_open.c b/src/rrd_open.c index aa9350e..0c51577 100644 --- a/src/rrd_open.c +++ b/src/rrd_open.c @@ -432,7 +432,7 @@ off_t rrd_seek( /* Get current position in rrd_file. */ -inline off_t rrd_tell( +off_t rrd_tell( rrd_file_t *rrd_file) { return rrd_file->pos; @@ -442,7 +442,7 @@ inline off_t rrd_tell( /* Read count bytes into buffer buf, starting at rrd_file->pos. * Returns the number of bytes read or <0 on error. */ -inline ssize_t rrd_read( +ssize_t rrd_read( rrd_file_t *rrd_file, void *buf, size_t count) @@ -480,7 +480,7 @@ inline ssize_t rrd_read( * rrd_file->pos of rrd_file->fd. * Returns the number of bytes written or <0 on error. */ -inline ssize_t rrd_write( +ssize_t rrd_write( rrd_file_t *rrd_file, const void *buf, size_t count) @@ -505,7 +505,7 @@ inline ssize_t rrd_write( /* flush all data pending to be written to FD. */ -inline void rrd_flush( +void rrd_flush( rrd_file_t *rrd_file) { if (fdatasync(rrd_file->fd) != 0) {