aboutsummaryrefslogtreecommitdiffstats
path: root/compress.c
diff options
context:
space:
mode:
authorNaresh Tanniru <ntanniru@codeaurora.org>2014-06-04 18:23:00 +0530
committerSteve Kondik <steve@cyngn.com>2015-12-07 21:58:13 -0800
commit7aafdef5659802f01c4036f778687a1f84d40267 (patch)
tree7f81c097d66f03fa31585e6efb3bd7a1f60be0d5 /compress.c
parent3c9df82b91a86d58ba11be90d6fb555438a6209e (diff)
downloadandroid_external_tinycompress-7aafdef5659802f01c4036f778687a1f84d40267.tar.gz
android_external_tinycompress-7aafdef5659802f01c4036f778687a1f84d40267.tar.bz2
android_external_tinycompress-7aafdef5659802f01c4036f778687a1f84d40267.zip
audio: compress error propagation
- On compress error, error type is not propagating from compress driver - Modify oops API to return error no Change-Id: I51031e96f1fa8838b51fffda64730a05c708cf4e
Diffstat (limited to 'compress.c')
-rw-r--r--compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compress.c b/compress.c
index e48ba57..3ea002a 100644
--- a/compress.c
+++ b/compress.c
@@ -107,7 +107,7 @@ static int oops(struct compress *compress, int e, const char *fmt, ...)
": %s", strerror(e));
errno = e;
- return -1;
+ return -errno;
}
const char *compress_get_error(struct compress *compress)