]> git.alsa-project.org Git - tinycompress.git/commit
compress.c: fix check for errors from poll(), read() and write()
authorQais Yousef <qais.yousef@imgtec.com>
Tue, 5 May 2015 10:21:09 +0000 (11:21 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 6 May 2015 06:18:03 +0000 (11:48 +0530)
commitf2a10cc7688ae7ff7e7ccda777d1fd120e450f4a
tree338aa35a103d9844d6f90d62afa4d512afb4aaf4
parentfcef155c9da15101bd55b4d4572be75e11b12ffc
compress.c: fix check for errors from poll(), read() and write()

When these functions fail they return -1 and set errno. Fix error checks
accordingly.

Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
src/lib/compress.c