From aa3f7ba36ebe3a933aa664f826382f60b31e86f1 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 28 Mar 2013 16:51:45 -0700 Subject: cbfstool: Replace C++ code with C code cbfstool was using a C++ wrapper around the C written LZMA functions. And a C wrapper around those C++ functions. Drop the mess and rewrite the functions to be all C. Change-Id: Ieb6645a42f19efcc857be323ed8bdfcd9f48ee7c Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/3010 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- util/cbfstool/compress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/cbfstool/compress.c') diff --git a/util/cbfstool/compress.c b/util/cbfstool/compress.c index 22f302067f..9ea1487ff9 100644 --- a/util/cbfstool/compress.c +++ b/util/cbfstool/compress.c @@ -26,14 +26,14 @@ #include #include "common.h" -extern void do_lzma_compress(char *in, int in_len, char *out, int *out_len); +void do_lzma_compress(char *in, int in_len, char *out, int *out_len); -void lzma_compress(char *in, int in_len, char *out, int *out_len) +static void lzma_compress(char *in, int in_len, char *out, int *out_len) { do_lzma_compress(in, in_len, out, out_len); } -void none_compress(char *in, int in_len, char *out, int *out_len) +static void none_compress(char *in, int in_len, char *out, int *out_len) { memcpy(out, in, in_len); *out_len = in_len; -- cgit v1.2.3