From: Eric Laurent Date: Wed, 24 Jul 2013 17:37:16 +0000 (-0700) Subject: fix error returned by compress_wait() X-Git-Tag: v1.1.0~27 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=22406d20f87615b0d2938d32ad85d155b097e21f;p=tinycompress.git fix error returned by compress_wait() oops() expects positive error codes. Signed-off-by: Eric Laurent Signed-off-by: Vinod Koul --- diff --git a/compress.c b/compress.c index 734fbbf..0e71c28 100644 --- a/compress.c +++ b/compress.c @@ -623,7 +623,7 @@ int compress_wait(struct compress *compress, int timeout_ms) return 0; } if (fds.revents & POLLERR) { - return oops(compress, -EIO, "poll returned error!"); + return oops(compress, EIO, "poll returned error!"); } return ret; }