summaryrefslogtreecommitdiff
path: root/util/cbfstool/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/compress.c')
-rw-r--r--util/cbfstool/compress.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/cbfstool/compress.c b/util/cbfstool/compress.c
index 38fa03dbed..5b916cee11 100644
--- a/util/cbfstool/compress.c
+++ b/util/cbfstool/compress.c
@@ -26,15 +26,16 @@
#include <stdio.h>
#include "common.h"
-static void lzma_compress(char *in, int in_len, char *out, int *out_len)
+static int lzma_compress(char *in, int in_len, char *out, int *out_len)
{
- do_lzma_compress(in, in_len, out, out_len);
+ return do_lzma_compress(in, in_len, out, out_len);
}
-static void none_compress(char *in, int in_len, char *out, int *out_len)
+static int none_compress(char *in, int in_len, char *out, int *out_len)
{
memcpy(out, in, in_len);
*out_len = in_len;
+ return 0;
}
comp_func_ptr compression_function(comp_algo algo)