]> git.alsa-project.org Git - tinycompress.git/commit
fix error reporting in tinycompress
authorLakshmi N Vinnakota <lakshmi.n.vinnakota@intel.com>
Thu, 23 May 2013 07:37:57 +0000 (13:07 +0530)
committerVinod Koul <vinod.koul@intel.com>
Thu, 23 May 2013 07:42:23 +0000 (13:12 +0530)
commit38145d7047fb7c4e9af74adc50afd73673078110
tree840883e60c31cdcc4a0c11343c240d1b727c3c79
parentaad6a2a407624ae8c50a8eed105ba436f0414a38
fix error reporting in tinycompress

The compress API are expected to return a negative value on an error
with errno indicating the type of error. But in some cases, this is
not happening.

The fix is the oops function always returns -1 and the actual
error number is determined by the global variable errno.

Signed-off-by: Lakshmi N Vinnakota <lakshmi.n.vinnakota@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c