Changed return type of sread() and swrite() from 'ssize_t' to 'int'
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 31 Jul 2017 05:13:15 +0000 (12:13 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Wed, 11 Oct 2017 07:33:10 +0000 (14:33 +0700)
commitc84ce4c2d974d891712f0287932f57ed7e6be98d
tree368bf11c032ca185176ef4e8322e005f1e483142
parentbbe5133c16fb12c033cc4375db4c4f9f1f1506e9
Changed return type of sread() and swrite() from 'ssize_t' to 'int'

Functions 'sread()' and 'swrite()', unlike 'read()' and 'write()', does not return the number of bytes actually read/written.
They return error status, which is returned as 'int' type in Collectd code.
src/daemon/common.c
src/daemon/common.h